This commit is contained in:
LaiJF
2022-06-23 05:48:05 +08:00
committed by GitHub
parent 31757203eb
commit c839a66958
3 changed files with 3 additions and 3 deletions

View File

@@ -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) {

View File

@@ -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 {

View File

@@ -1230,7 +1230,7 @@ void OpenGLDriver::destroyRenderPrimitive(Handle<HwRenderPrimitive> rph) {
if (rph) {
auto& gl = mContext;
GLRenderPrimitive const* rp = handle_cast<const GLRenderPrimitive*>(rph);
gl.deleteVextexArrays(1, &rp->gl.vao);
gl.deleteVertexArrays(1, &rp->gl.vao);
destruct(rph, rp);
}
}