From 9753fa87b8d1e396e8dfa74a845556ce2b000267 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 10 Jun 2014 18:43:08 +0300 Subject: Add OpenGL functions glProgramUniformXf. --- src/graphicsmanager.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/graphicsmanager.cpp') diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp index ed9768473..c7e4777e1 100644 --- a/src/graphicsmanager.cpp +++ b/src/graphicsmanager.cpp @@ -1021,6 +1021,14 @@ void GraphicsManager::initOpenGLFunctions() { logger->log1("GL_ARB_separate_shader_objects not supported"); } + if (checkGLVersion(4, 1) + || supportExtension("GL_ARB_separate_shader_objects")) + { + assignFunction(glProgramUniform1f, "glProgramUniform1f"); + assignFunction(glProgramUniform2f, "glProgramUniform2f"); + assignFunction(glProgramUniform3f, "glProgramUniform3f"); + assignFunction(glProgramUniform4f, "glProgramUniform4f"); + } } else { -- cgit v1.2.3-70-g09d2