diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-06-22 22:44:36 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-06-22 22:44:36 +0300 |
commit | b23c9675371a77b634efab0e744a0373990614a1 (patch) | |
tree | 9c21ee55c9fa9bf8c513953a93eb464ea80f3166 | |
parent | 00e846a09b0dea18792a3362a3ce78cd396a0ded (diff) | |
download | manaverse-b23c9675371a77b634efab0e744a0373990614a1.tar.gz manaverse-b23c9675371a77b634efab0e744a0373990614a1.tar.bz2 manaverse-b23c9675371a77b634efab0e744a0373990614a1.tar.xz manaverse-b23c9675371a77b634efab0e744a0373990614a1.zip |
Allow use OpenGL extension GL_EXT_gpu_shader4 if OpenGL version 3.0 or more.
-rw-r--r-- | src/graphicsmanager.cpp | 3 |
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"); } |