From 5326f294ceb95f1b535d145b5fdbdc221f560d53 Mon Sep 17 00:00:00 2001 From: ccolin Date: Sun, 3 Jan 2021 19:55:04 +0100 Subject: add option to draw trajectories --- src/opengl_mesh.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src/opengl_mesh.cc') 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); } -- cgit v1.2.3-70-g09d2