src/gl/compiler.h

changeset 291
42b4953dff85
parent 290
0fd926ebb03b
child 309
d862721d19a3
--- a/src/gl/compiler.h	Tue Jun 28 17:35:56 2022 +0300
+++ b/src/gl/compiler.h	Tue Jun 28 17:59:34 2022 +0300
@@ -17,6 +17,7 @@
  */
 
 #pragma once
+#include <GL/glew.h>
 #include <glm/gtc/type_ptr.hpp>
 #include <QOpenGLVertexArrayObject>
 #include <QOpenGLBuffer>
@@ -89,7 +90,7 @@
 		for (gl::ModelShaders::ShaderObject& shader : shaders->shaderObjects)
 		{
 			shader.program->bind();
-			const int location = glfunc().glGetUniformLocation(shader.program->programId(), uniformName);
+			const int location = glGetUniformLocation(shader.program->programId(), uniformName);
 			if (location != -1) {
 				shader.program->setUniformValue(location, std::forward<Ts>(args)...);
 			}

mercurial