diff options
Diffstat (limited to 'backends/graphics/opengl/shader.cpp')
-rw-r--r-- | backends/graphics/opengl/shader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/graphics/opengl/shader.cpp b/backends/graphics/opengl/shader.cpp index d7fc20574b..7fdebed493 100644 --- a/backends/graphics/opengl/shader.cpp +++ b/backends/graphics/opengl/shader.cpp @@ -167,10 +167,10 @@ void ShaderARB::activate(const GLfloat *projectionMatrix) { GL_CALL(glUseProgramObjectARB(_program)); // Set projection matrix. - GL_CALL(glUniformMatrix4fvARB(_projectionLocation, 1, GL_FALSE, projectionMatrix)); + GL_CALL(glUniformMatrix4fv(_projectionLocation, 1, GL_FALSE, projectionMatrix)); // We always use texture unit 0. - GL_CALL(glUniform1iARB(_textureLocation, 0)); + GL_CALL(glUniform1i(_textureLocation, 0)); } GLhandleARB ShaderARB::compileShader(const char *source, GLenum shaderType) { |