diff options
author | Samuel Rødal <samuel.rodal@nokia.com> | 2010-08-24 14:22:40 (GMT) |
---|---|---|
committer | Samuel Rødal <samuel.rodal@nokia.com> | 2010-08-31 08:15:41 (GMT) |
commit | 63aa8c467941cf6cb19fc6fcad5c0efde0b53216 (patch) | |
tree | 11f2ab0346996ce6f370d146464072beacc66cc9 /src/opengl | |
parent | d14cae12f3e743943730d811a5a94ae2c3dbb871 (diff) | |
download | Qt-63aa8c467941cf6cb19fc6fcad5c0efde0b53216.zip Qt-63aa8c467941cf6cb19fc6fcad5c0efde0b53216.tar.gz Qt-63aa8c467941cf6cb19fc6fcad5c0efde0b53216.tar.bz2 |
Made QT_GL_SWAPBUFFER_PRESERVE=1 with the GL graphics system work.
On desktop, we should just do swapBuffers() in swapRegion().
Reviewed-by: Trond
Diffstat (limited to 'src/opengl')
-rw-r--r-- | src/opengl/qgl.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/opengl/qgl.cpp b/src/opengl/qgl.cpp index 943a195..c49dba4 100644 --- a/src/opengl/qgl.cpp +++ b/src/opengl/qgl.cpp @@ -2103,11 +2103,8 @@ void QGLContextPrivate::syncGlState() #ifdef QT_NO_EGL void QGLContextPrivate::swapRegion(const QRegion *) { - static bool firstWarning = true; - if (firstWarning) { - qWarning() << "::swapRegion called but not supported!"; - firstWarning = false; - } + Q_Q(QGLContext); + q->swapBuffers(); } #endif |