diff -r fe094d0687ad -r c27612f0eac0 src/gl/compiler.h --- 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 #include #include #include -#include +#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(value)); shader.program->release();