diff --git a/src/opengl/qgl.cpp b/src/opengl/qgl.cpp index 583ecb69a8..8c98a0ea3a 100644 --- a/src/opengl/qgl.cpp +++ b/src/opengl/qgl.cpp @@ -4798,12 +4798,14 @@ QGLExtensions::Extensions QGLExtensions::currentContextExtensions() if (extensions.match("GL_EXT_bgra")) glExtensions |= BGRATextureFormat; +#if !defined(QT_OPENGL_ES) { GLboolean srgbCapableFramebuffers = false; glGetBooleanv(GL_FRAMEBUFFER_SRGB_CAPABLE_EXT, &srgbCapableFramebuffers); if (srgbCapableFramebuffers) glExtensions |= SRGBFrameBuffer; } +#endif return glExtensions; }