summaryrefslogtreecommitdiffstats
path: root/src/opengl
diff options
context:
space:
mode:
authorJani Hautakangas <jani.hautakangas@nokia.com>2011-11-03 18:51:51 (GMT)
committerJani Hautakangas <jani.hautakangas@nokia.com>2011-11-03 18:51:51 (GMT)
commitf92483c3922763a5f5d1500f4892be8b214fe299 (patch)
tree008934c79a58765a5b079ff65c5481166bd54939 /src/opengl
parentbc874b5a7158309b8c5469f64f015d739fd3b610 (diff)
downloadQt-f92483c3922763a5f5d1500f4892be8b214fe299.zip
Qt-f92483c3922763a5f5d1500f4892be8b214fe299.tar.gz
Qt-f92483c3922763a5f5d1500f4892be8b214fe299.tar.bz2
Clear error due to FRAMEBUFFER_SRGB_CAPABLE_EXT
glGetBooleanv generates an error if this param isn't supported. This error generates wrong warnings in later states. Reviewed-by: Eskil
Diffstat (limited to 'src/opengl')
-rw-r--r--src/opengl/qgl.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/opengl/qgl.cpp b/src/opengl/qgl.cpp
index db3a7ac..2fc3dea 100644
--- a/src/opengl/qgl.cpp
+++ b/src/opengl/qgl.cpp
@@ -5541,6 +5541,9 @@ QGLExtensions::Extensions QGLExtensions::currentContextExtensions()
glGetBooleanv(FRAMEBUFFER_SRGB_CAPABLE_EXT, &srgbCapableFramebuffers);
if (srgbCapableFramebuffers)
glExtensions |= SRGBFrameBuffer;
+ // Clear possible error which is generated if
+ // FRAMEBUFFER_SRGB_CAPABLE_EXT isn't supported.
+ glGetError();
}
return glExtensions;