aboutsummaryrefslogtreecommitdiff
path: root/src/opengl_mesh.cc
diff options
context:
space:
mode:
authorccolin2021-01-04 13:34:34 +0100
committerccolin2021-01-04 13:34:34 +0100
commit0f06601bc69d08baaa6c5b11c03e59ac818c426e (patch)
treeb9225f8b6529b74f289591bdea63992393315f9c /src/opengl_mesh.cc
parent7fe6bf15180110ba0df803472444cd7fd6a4e414 (diff)
fix misc rendering issue
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 8ad3336..e54938d 100644
--- a/src/opengl_mesh.cc
+++ b/src/opengl_mesh.cc
@@ -33,4 +33,5 @@ void OpenGLMesh::draw(QOpenGLExtraFunctions *f, const QMatrix4x4 &mat) const {
f->glDrawArrays(GL_TRIANGLES, 0, nverts);
if (tex) tex->release();
f->glBindVertexArray(0);
+ program->release();
}