summaryrefslogtreecommitdiffstats
path: root/src/opengl/qgl.cpp
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-09-10 23:49:50 (GMT)
committerRhys Weatherley <rhys.weatherley@nokia.com>2009-09-10 23:49:50 (GMT)
commitc5455e3aa004cc8ecf430b15def1d2000c886f45 (patch)
tree39498c1e17702d8d06eacb77f9dd9145deccbfba /src/opengl/qgl.cpp
parent7c52bd0b28eaf0b1d5435fda6140a9d05fddba19 (diff)
downloadQt-c5455e3aa004cc8ecf430b15def1d2000c886f45.zip
Qt-c5455e3aa004cc8ecf430b15def1d2000c886f45.tar.gz
Qt-c5455e3aa004cc8ecf430b15def1d2000c886f45.tar.bz2
Resolve ARB_framebuffer_object and OES_framebuffer_object extensions
Reviewed-by: trustme
Diffstat (limited to 'src/opengl/qgl.cpp')
-rw-r--r--src/opengl/qgl.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/opengl/qgl.cpp b/src/opengl/qgl.cpp
index 8a9ea1c..acb4d4f 100644
--- a/src/opengl/qgl.cpp
+++ b/src/opengl/qgl.cpp
@@ -4815,6 +4815,15 @@ void QGLExtensions::init_extensions()
glExtensions |= FramebufferObject;
glExtensions |= GenerateMipmap;
#endif
+#if defined(QT_OPENGL_ES_1) || defined(QT_OPENGL_ES_1_CL)
+ if (extensions.contains(QLatin1String("OES_framebuffer_object")))
+ glExtensions |= FramebufferObject;
+#endif
+ if (extensions.contains(QLatin1String("ARB_framebuffer_object"))) {
+ // ARB_framebuffer_object also includes EXT_framebuffer_blit.
+ glExtensions |= FramebufferObject;
+ glExtensions |= FramebufferBlit;
+ }
if (extensions.contains(QLatin1String("EXT_framebuffer_blit")))
glExtensions |= FramebufferBlit;