From c839a669586ccbead03dd6788ba222cdf11bba70 Mon Sep 17 00:00:00 2001 From: LaiJF Date: Thu, 23 Jun 2022 05:48:05 +0800 Subject: [PATCH] Fix typo (#5728) --- filament/backend/src/opengl/OpenGLContext.cpp | 2 +- filament/backend/src/opengl/OpenGLContext.h | 2 +- filament/backend/src/opengl/OpenGLDriver.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/filament/backend/src/opengl/OpenGLContext.cpp b/filament/backend/src/opengl/OpenGLContext.cpp index 57e6548e61..fcde6f65f6 100644 --- a/filament/backend/src/opengl/OpenGLContext.cpp +++ b/filament/backend/src/opengl/OpenGLContext.cpp @@ -477,7 +477,7 @@ void OpenGLContext::deleteBuffers(GLsizei n, const GLuint* buffers, GLenum targe } } -void OpenGLContext::deleteVextexArrays(GLsizei n, const GLuint* arrays) noexcept { +void OpenGLContext::deleteVertexArrays(GLsizei n, const GLuint* arrays) noexcept { glDeleteVertexArrays(1, arrays); // binding of a bound VAO is reset to 0 for (GLsizei i = 0; i < n; ++i) { diff --git a/filament/backend/src/opengl/OpenGLContext.h b/filament/backend/src/opengl/OpenGLContext.h index d88f8dfa43..1d9a40af8e 100644 --- a/filament/backend/src/opengl/OpenGLContext.h +++ b/filament/backend/src/opengl/OpenGLContext.h @@ -114,7 +114,7 @@ public: inline void depthRange(GLclampf near, GLclampf far) noexcept; void deleteBuffers(GLsizei n, const GLuint* buffers, GLenum target) noexcept; - void deleteVextexArrays(GLsizei n, const GLuint* arrays) noexcept; + void deleteVertexArrays(GLsizei n, const GLuint* arrays) noexcept; // glGet*() values struct { diff --git a/filament/backend/src/opengl/OpenGLDriver.cpp b/filament/backend/src/opengl/OpenGLDriver.cpp index 4692797425..f4db416b2c 100644 --- a/filament/backend/src/opengl/OpenGLDriver.cpp +++ b/filament/backend/src/opengl/OpenGLDriver.cpp @@ -1230,7 +1230,7 @@ void OpenGLDriver::destroyRenderPrimitive(Handle rph) { if (rph) { auto& gl = mContext; GLRenderPrimitive const* rp = handle_cast(rph); - gl.deleteVextexArrays(1, &rp->gl.vao); + gl.deleteVertexArrays(1, &rp->gl.vao); destruct(rph, rp); } }