aboutsummaryrefslogtreecommitdiff
path: root/src/opengl_mesh.cc
diff options
context:
space:
mode:
authorccolin2021-01-03 19:55:04 +0100
committerccolin2021-01-03 19:55:04 +0100
commit5326f294ceb95f1b535d145b5fdbdc221f560d53 (patch)
treea5d9dee2ebfa6413aedd764e901f3df994888614 /src/opengl_mesh.cc
parentec4017bb0ff221c5c3e192a165c8d60a54f3bedc (diff)
add option to draw trajectories
Diffstat (limited to 'src/opengl_mesh.cc')
-rw-r--r--src/opengl_mesh.cc1
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);
}