diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2011-11-03 19:00:21 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2011-11-03 19:00:21 (GMT) |
commit | 41b014093f2ad85b4ecee768da1e1cb9636d4366 (patch) | |
tree | 008934c79a58765a5b079ff65c5481166bd54939 | |
parent | 3f4672e3031621cacd192ea45f25063a1cdc06cf (diff) | |
parent | f92483c3922763a5f5d1500f4892be8b214fe299 (diff) | |
download | Qt-41b014093f2ad85b4ecee768da1e1cb9636d4366.zip Qt-41b014093f2ad85b4ecee768da1e1cb9636d4366.tar.gz Qt-41b014093f2ad85b4ecee768da1e1cb9636d4366.tar.bz2 |
Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qt-fire-team
* 'master' of git://scm.dev.nokia.troll.no/qt/qt-fire-team:
Clear error due to FRAMEBUFFER_SRGB_CAPABLE_EXT
Add GL_EXT_texture_format_BGRA8888 support.
-rw-r--r-- | src/opengl/qgl.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/opengl/qgl.cpp b/src/opengl/qgl.cpp index 08b9ca3..2fc3dea 100644 --- a/src/opengl/qgl.cpp +++ b/src/opengl/qgl.cpp @@ -5499,7 +5499,8 @@ QGLExtensions::Extensions QGLExtensions::currentContextExtensions() glExtensions |= NVFloatBuffer; if (extensions.match("GL_ARB_pixel_buffer_object")) glExtensions |= PixelBufferObject; - if (extensions.match("GL_IMG_texture_format_BGRA8888")) + if (extensions.match("GL_IMG_texture_format_BGRA8888") + || extensions.match("GL_EXT_texture_format_BGRA8888")) glExtensions |= BGRATextureFormat; #if defined(QT_OPENGL_ES_2) glExtensions |= FramebufferObject; @@ -5540,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; |