summaryrefslogtreecommitdiffstats
path: root/src/opengl/qgl.cpp
diff options
context:
space:
mode:
authorSami Lempinen <sami.lempinen@nokia.com>2011-05-09 12:18:02 (GMT)
committerSami Lempinen <sami.lempinen@nokia.com>2011-05-09 12:18:02 (GMT)
commitfa53804c12e692d29421e22e2c59f6aff2d519e7 (patch)
tree00c6f99ab439e4f75fb52ae48ad8589120965813 /src/opengl/qgl.cpp
parent97e423b50d316c3a9e2083c3a9d80bf16554faa9 (diff)
parentf57395a27730cbf464b7f9293bcf058a0a481a98 (diff)
downloadQt-fa53804c12e692d29421e22e2c59f6aff2d519e7.zip
Qt-fa53804c12e692d29421e22e2c59f6aff2d519e7.tar.gz
Qt-fa53804c12e692d29421e22e2c59f6aff2d519e7.tar.bz2
Merge remote-tracking branch 'qt/4.8'
Diffstat (limited to 'src/opengl/qgl.cpp')
-rw-r--r--src/opengl/qgl.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/opengl/qgl.cpp b/src/opengl/qgl.cpp
index 057fb55..099cc00 100644
--- a/src/opengl/qgl.cpp
+++ b/src/opengl/qgl.cpp
@@ -5490,6 +5490,13 @@ QGLExtensions::Extensions QGLExtensions::currentContextExtensions()
if (extensions.match("GL_EXT_bgra"))
glExtensions |= BGRATextureFormat;
+ {
+ GLboolean srgbCapableFramebuffers;
+ glGetBooleanv(FRAMEBUFFER_SRGB_CAPABLE_EXT, &srgbCapableFramebuffers);
+ if (srgbCapableFramebuffers)
+ glExtensions |= SRGBFrameBuffer;
+ }
+
return glExtensions;
}