Fix bad use of QOpenGLFunctions

Sun, 26 Jun 2022 20:26:09 +0300

author
Teemu Piippo <teemu.s.piippo@gmail.com>
date
Sun, 26 Jun 2022 20:26:09 +0300
changeset 260
48c66a4b1fe5
parent 259
c27612f0eac0
child 261
6a875faebde2

Fix bad use of QOpenGLFunctions

src/gl/compiler.cpp file | annotate | diff | comparison | revisions
--- a/src/gl/compiler.cpp	Sun Jun 26 19:44:45 2022 +0300
+++ b/src/gl/compiler.cpp	Sun Jun 26 20:26:09 2022 +0300
@@ -349,8 +349,7 @@
 		}
 		const GLsizeiptr size = static_cast<int>(vector.size() * sizeof vector[0]);
 		object.buffer.bind();
-		QOpenGLFunctions glfunc;
-		glfunc.glBufferSubData(GL_ARRAY_BUFFER, 0, size, vector.data());
+		glfunc().glBufferSubData(GL_ARRAY_BUFFER, 0, size, vector.data());
 		object.buffer.release();
 	}
 }

mercurial