diff options
-rw-r--r-- | src/gui/kernel/qopenglcontext.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/kernel/qopenglcontext.cpp b/src/gui/kernel/qopenglcontext.cpp index ffb0726c35..d476278a7d 100644 --- a/src/gui/kernel/qopenglcontext.cpp +++ b/src/gui/kernel/qopenglcontext.cpp @@ -567,7 +567,8 @@ void QOpenGLContext::swapBuffers(QSurface *surface) if (framebufferBinding != platformFramebuffer) qWarning() << "QOpenGLContext::swapBuffers() called with non-default framebuffer object bound"; #endif - + if (surface->format().swapBehavior() == QSurfaceFormat::SingleBuffer) + glFlush(); d->platformGLContext->swapBuffers(surfaceHandle); } |