diff options
author | Jani Hautakangas <jani.hautakangas@nokia.com> | 2011-11-03 18:51:51 (GMT) |
---|---|---|
committer | Jani Hautakangas <jani.hautakangas@nokia.com> | 2011-11-03 18:51:51 (GMT) |
commit | f92483c3922763a5f5d1500f4892be8b214fe299 (patch) | |
tree | 008934c79a58765a5b079ff65c5481166bd54939 /src/opengl | |
parent | bc874b5a7158309b8c5469f64f015d739fd3b610 (diff) | |
download | Qt-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.cpp | 3 |
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; |