making it work

This commit is contained in:
itsmattkc
2019-01-25 16:46:39 +11:00
parent 4cabe1571b
commit 9c57219ba9
4 changed files with 107 additions and 21 deletions
+5
View File
@@ -335,6 +335,9 @@ GLuint compose_sequence(Viewer* viewer,
glBegin(GL_QUADS);
QOpenGLShaderProgram program;
program.bind();
if (coords.grid_size <= 1) {
float z = 0.0f;
@@ -379,6 +382,8 @@ GLuint compose_sequence(Viewer* viewer,
}
}
program.release();
glEnd();
glBindTexture(GL_TEXTURE_2D, 0); // unbind texture