diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-06-10 18:43:08 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-06-10 18:43:08 +0300 |
commit | 9753fa87b8d1e396e8dfa74a845556ce2b000267 (patch) | |
tree | 67f6c38dfe63b3e582d33a71a93798611b6abca0 /src/graphicsmanager.cpp | |
parent | 6ccc6e73a226c40c2f3538f6d6126bb2774edd52 (diff) | |
download | mv-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.cpp | 8 |
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 { |