From 1744a94ce6a75ead5bb92546f1e0b28dd8a8a05c Mon Sep 17 00:00:00 2001 From: Rhys Weatherley Date: Fri, 27 Aug 2010 15:48:36 +1000 Subject: Recognize GL_ARB_shader_objects as indicating shaders Fixes a regression introduced by bf5c25c4. Some OpenGL implementations don't have the GL_ARB_fragment_shader extension listed even though they do support shaders. Task-number: QTBUG-13179 Reviewed-by: Sarah Smith --- src/opengl/qgl.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/opengl/qgl.cpp b/src/opengl/qgl.cpp index 81e55b3c47..f3d0d81af4 100644 --- a/src/opengl/qgl.cpp +++ b/src/opengl/qgl.cpp @@ -4931,6 +4931,8 @@ QGLExtensions::Extensions QGLExtensions::currentContextExtensions() glExtensions |= FragmentProgram; if (extensions.match("GL_ARB_fragment_shader")) glExtensions |= FragmentShader; + if (extensions.match("GL_ARB_shader_objects")) + glExtensions |= FragmentShader; if (extensions.match("GL_ARB_ES2_compatibility")) glExtensions |= ES2Compatibility; if (extensions.match("GL_ARB_texture_mirrored_repeat")) -- cgit v1.2.1