summaryrefslogtreecommitdiffstats
path: root/src/opengl/qgl.cpp
diff options
context:
space:
mode:
authorSamuel Rødal <sroedal@trolltech.com>2009-03-12 08:00:34 (GMT)
committerGunnar Sletta <gunnar@trolltech.com>2009-04-01 14:35:46 (GMT)
commit1ada6800efbbca276441b3b170b1ccfa0c09c20a (patch)
tree5687624d88cb06adaedbf48db03eb70c732b3fad /src/opengl/qgl.cpp
parent4d4580b5f43adb22b6ba95f49698efcd5dbdfeae (diff)
downloadQt-1ada6800efbbca276441b3b170b1ccfa0c09c20a.zip
Qt-1ada6800efbbca276441b3b170b1ccfa0c09c20a.tar.gz
Qt-1ada6800efbbca276441b3b170b1ccfa0c09c20a.tar.bz2
Fixes: Add blitting and multisample API to QGLFramebufferObject.
RevBy: Trond Details: Support GL_EXT_framebuffer_multisample and GL_EXT_framebuffer_blit in the QGLFramebufferObject API.
Diffstat (limited to 'src/opengl/qgl.cpp')
-rw-r--r--src/opengl/qgl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/opengl/qgl.cpp b/src/opengl/qgl.cpp
index 558897d..fc11d90 100644
--- a/src/opengl/qgl.cpp
+++ b/src/opengl/qgl.cpp
@@ -4175,6 +4175,8 @@ void QGLExtensions::init_extensions()
glExtensions |= FramebufferObject;
glExtensions |= GenerateMipmap;
#endif
+ if (extensions.contains(QLatin1String("EXT_framebuffer_blit")))
+ glExtensions |= FramebufferBlit;
QGLContext cx(QGLFormat::defaultFormat());
if (glExtensions & TextureCompression) {