summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2011-11-04 13:04:25 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2011-11-04 13:04:25 (GMT)
commit1e50b6abb78ce92241270474fa5b0cc4e568dc18 (patch)
tree4458e514e04a9701be2a0d24240be39c728c3af0 /src
parent79829b9871574c65c15bf0b6553a500dcff8d6b7 (diff)
parent41b014093f2ad85b4ecee768da1e1cb9636d4366 (diff)
downloadQt-1e50b6abb78ce92241270474fa5b0cc4e568dc18.zip
Qt-1e50b6abb78ce92241270474fa5b0cc4e568dc18.tar.gz
Qt-1e50b6abb78ce92241270474fa5b0cc4e568dc18.tar.bz2
Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt-fire-staging into master-integration
* 'master' of scm.dev.nokia.troll.no:qt/qt-fire-staging: Clear error due to FRAMEBUFFER_SRGB_CAPABLE_EXT Add GL_EXT_texture_format_BGRA8888 support. Revert "Correction for effectiveBoundingRect() calculation for QGraphicsItem" Correction for effectiveBoundingRect() calculation for QGraphicsItem
Diffstat (limited to 'src')
-rw-r--r--src/opengl/qgl.cpp6
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;