summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);