summaryrefslogtreecommitdiffstats
path: root/src/opengl
diff options
context:
space:
mode:
authorJani Hautakangas <jani.hautakangas@nokia.com>2011-11-03 18:48:01 (GMT)
committerJani Hautakangas <jani.hautakangas@nokia.com>2011-11-03 18:48:01 (GMT)
commitbc874b5a7158309b8c5469f64f015d739fd3b610 (patch)
tree772e55114f355cc7d06daad9a039be18579dc947 /src/opengl
parent658bac8782bde1404d4713e5b5e60e3f519457fa (diff)
downloadQt-bc874b5a7158309b8c5469f64f015d739fd3b610.zip
Qt-bc874b5a7158309b8c5469f64f015d739fd3b610.tar.gz
Qt-bc874b5a7158309b8c5469f64f015d739fd3b610.tar.bz2
Add GL_EXT_texture_format_BGRA8888 support.
QtOpenGL supports GL_IMG_texture_format_BGRA8888 but GL_EXT_texture_format_BGRA8888 is missing. These extensions are essentially the same. Task-number: QTBUG-22538 Reviewed-by: Samuel Rødal
Diffstat (limited to 'src/opengl')
-rw-r--r--src/opengl/qgl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/opengl/qgl.cpp b/src/opengl/qgl.cpp
index 08b9ca3..db3a7ac 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;