diff options
Diffstat (limited to 'src/opengl_mesh.cc')
-rw-r--r-- | src/opengl_mesh.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/opengl_mesh.cc b/src/opengl_mesh.cc index f77a70a..8ad3336 100644 --- a/src/opengl_mesh.cc +++ b/src/opengl_mesh.cc @@ -32,4 +32,5 @@ void OpenGLMesh::draw(QOpenGLExtraFunctions *f, const QMatrix4x4 &mat) const { if (tex) tex->bind(); f->glDrawArrays(GL_TRIANGLES, 0, nverts); if (tex) tex->release(); + f->glBindVertexArray(0); } |