summaryrefslogtreecommitdiff
path: root/src/graphicsmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-10 18:43:08 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-10 18:43:08 +0300
commit9753fa87b8d1e396e8dfa74a845556ce2b000267 (patch)
tree67f6c38dfe63b3e582d33a71a93798611b6abca0 /src/graphicsmanager.cpp
parent6ccc6e73a226c40c2f3538f6d6126bb2774edd52 (diff)
downloadmv-9753fa87b8d1e396e8dfa74a845556ce2b000267.tar.gz
mv-9753fa87b8d1e396e8dfa74a845556ce2b000267.tar.bz2
mv-9753fa87b8d1e396e8dfa74a845556ce2b000267.tar.xz
mv-9753fa87b8d1e396e8dfa74a845556ce2b000267.zip
Add OpenGL functions glProgramUniformXf.
Diffstat (limited to 'src/graphicsmanager.cpp')
-rw-r--r--src/graphicsmanager.cpp8
1 files changed, 8 insertions, 0 deletions
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
{