summaryrefslogtreecommitdiffstats
path: root/src/opengl/qglframebufferobject.cpp
diff options
context:
space:
mode:
authorFabian Bumberger <fbumberger@rim.com>2014-03-17 17:45:08 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-04-01 23:35:21 +0200
commit2c36469a16f166a3b4e513cccf8186157952bba0 (patch)
tree250c3eeaefbc2034583ee64975592c3254bf0f16 /src/opengl/qglframebufferobject.cpp
parent30b334ffebb13876d89395f6ac253b7741920efe (diff)
QNX: Fix OpenGL autotest
On QNX grabbing the frame buffer returns the content of the back buffer. In order to execute the OpenGL tests properly a swapBuffers is executed before in order to be able to retrieve the content of the front buffer. The patch also documents this platform behavior. Change-Id: I7a501818ec6eea061f2f54f95854f68cb72e0534 Reviewed-by: James McDonnell <jmcdonnell@qnx.com> Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/opengl/qglframebufferobject.cpp')
-rw-r--r--src/opengl/qglframebufferobject.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/opengl/qglframebufferobject.cpp b/src/opengl/qglframebufferobject.cpp
index d636da91b5..bd8bc2f64a 100644
--- a/src/opengl/qglframebufferobject.cpp
+++ b/src/opengl/qglframebufferobject.cpp
@@ -1114,6 +1114,9 @@ QGLFramebufferObjectFormat QGLFramebufferObject::format() const
\fn QImage QGLFramebufferObject::toImage() const
Returns the contents of this framebuffer object as a QImage.
+
+ On QNX the back buffer is not preserved when a buffer swap occures. So this function
+ might return old content.
*/
QImage QGLFramebufferObject::toImage() const
{