diff options
author | ccolin | 2021-01-03 19:55:04 +0100 |
---|---|---|
committer | ccolin | 2021-01-03 19:55:04 +0100 |
commit | 5326f294ceb95f1b535d145b5fdbdc221f560d53 (patch) | |
tree | a5d9dee2ebfa6413aedd764e901f3df994888614 /src/opengl_mesh.cc | |
parent | ec4017bb0ff221c5c3e192a165c8d60a54f3bedc (diff) |
add option to draw trajectories
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); } |