src/gl/compiler.h

changeset 259
c27612f0eac0
parent 217
6d95c1a41e6e
child 264
76a025db4948
--- a/src/gl/compiler.h	Wed Jun 22 23:51:06 2022 +0300
+++ b/src/gl/compiler.h	Sun Jun 26 19:44:45 2022 +0300
@@ -17,14 +17,13 @@
  */
 
 #pragma once
-#include "basics.h"
-#include "gl/common.h"
-#include "types/boundingbox.h"
 #include <glm/gtc/type_ptr.hpp>
 #include <QOpenGLVertexArrayObject>
 #include <QOpenGLBuffer>
 #include <QOpenGLShaderProgram>
-#include <QOpenGLExtraFunctions>
+#include "basics.h"
+#include "gl/common.h"
+#include "types/boundingbox.h"
 #include "model.h"
 
 class Model;
@@ -89,7 +88,7 @@
 		for (gl::ModelShaders::ShaderObject& shader : shaders->shaderObjects)
 		{
 			shader.program->bind();
-			const int location = glfunc.glGetUniformLocation(shader.program->programId(), uniformName);
+			const int location = glfunc().glGetUniformLocation(shader.program->programId(), uniformName);
 			Q_ASSERT(location != -1);
 			shader.program->setUniformValue(location, std::forward<T>(value));
 			shader.program->release();

mercurial