Fix typo (#5728)
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user