From fc52f730506422ac99e44cd74f229e6a0c5c2121 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Mon, 21 Dec 2015 05:47:29 +0100 Subject: OPENGL: Slightly cleanup programmable pipeline handling. --- backends/graphics/opengl/shader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backends/graphics/opengl/shader.cpp') 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) { -- cgit v1.2.3