summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-22 22:44:36 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-22 22:44:36 +0300
commitb23c9675371a77b634efab0e744a0373990614a1 (patch)
tree9c21ee55c9fa9bf8c513953a93eb464ea80f3166 /src
parent00e846a09b0dea18792a3362a3ce78cd396a0ded (diff)
downloadplus-b23c9675371a77b634efab0e744a0373990614a1.tar.gz
plus-b23c9675371a77b634efab0e744a0373990614a1.tar.bz2
plus-b23c9675371a77b634efab0e744a0373990614a1.tar.xz
plus-b23c9675371a77b634efab0e744a0373990614a1.zip
Allow use OpenGL extension GL_EXT_gpu_shader4 if OpenGL version 3.0 or more.
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");
}