summaryrefslogtreecommitdiff
path: root/src/graphicsmanager.cpp
diff options
context:
space:
mode:
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
{