summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/graphicsmanager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp
index 8dbbc75fe..241a9c438 100644
--- a/src/graphicsmanager.cpp
+++ b/src/graphicsmanager.cpp
@@ -834,6 +834,7 @@ void GraphicsManager::initOpenGLFunctions()
const bool is15 = checkGLVersion(1, 5);
const bool is20 = checkGLVersion(2, 0);
const bool is21 = checkGLVersion(2, 1);
+ const bool is30 = checkGLVersion(3, 0);
mSupportModernOpengl = true;
// Texture sampler
@@ -1065,7 +1066,7 @@ void GraphicsManager::initOpenGLFunctions()
assignFunction(glUniform3f, "glUniform3f");
assignFunction(glUniform4f, "glUniform4f");
- if (supportExtension("GL_EXT_gpu_shader4"))
+ if (is30 || supportExtension("GL_EXT_gpu_shader4"))
{
assignFunction(glBindFragDataLocation, "glBindFragDataLocation");
}