Sun, 26 Jun 2022 20:26:09 +0300
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(); } }