From b23c9675371a77b634efab0e744a0373990614a1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 22 Jun 2014 22:44:36 +0300 Subject: Allow use OpenGL extension GL_EXT_gpu_shader4 if OpenGL version 3.0 or more. --- src/graphicsmanager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/graphicsmanager.cpp') 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"); } -- cgit v1.2.3-70-g09d2