summaryrefslogtreecommitdiffstats
path: root/src/opengl/qglframebufferobject.cpp
diff options
context:
space:
mode:
authorSamuel Rødal <sroedal@trolltech.com>2009-09-01 15:02:16 (GMT)
committerSamuel Rødal <sroedal@trolltech.com>2009-09-01 15:28:50 (GMT)
commitcd027ea513ce57939964ee23b522eb1a7c4f9a6c (patch)
treea2a573aa7c8dc52741ba9ca4d631589e616b68da /src/opengl/qglframebufferobject.cpp
parentf88f879954c31e45c2edb1f5a8050673a471c78e (diff)
downloadQt-cd027ea513ce57939964ee23b522eb1a7c4f9a6c.zip
Qt-cd027ea513ce57939964ee23b522eb1a7c4f9a6c.tar.gz
Qt-cd027ea513ce57939964ee23b522eb1a7c4f9a6c.tar.bz2
Unambiguated QGLFramebufferObject constructor on Mac OS X.
Reviewed-by: Trond
Diffstat (limited to 'src/opengl/qglframebufferobject.cpp')
-rw-r--r--src/opengl/qglframebufferobject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opengl/qglframebufferobject.cpp b/src/opengl/qglframebufferobject.cpp
index 8fd113a..427aab3 100644
--- a/src/opengl/qglframebufferobject.cpp
+++ b/src/opengl/qglframebufferobject.cpp
@@ -877,7 +877,7 @@ QImage QGLFramebufferObject::toImage() const
// qt_gl_read_framebuffer doesn't work on a multisample FBO
if (format().samples() != 0) {
- QGLFramebufferObject temp(size());
+ QGLFramebufferObject temp(size(), QGLFramebufferObjectFormat());
QRect rect(QPoint(0, 0), size());
blitFramebuffer(&temp, rect, const_cast<QGLFramebufferObject *>(this), rect);