From e309914b0481201ed46f79f115548ebb22c19018 Mon Sep 17 00:00:00 2001 From: Tom Cooksey Date: Wed, 17 Mar 2010 13:03:33 +0100 Subject: Make sure XCopyArea has completed before resuming rendering Reviewed-By: TrustMe --- src/opengl/qwindowsurface_x11gl.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/opengl/qwindowsurface_x11gl.cpp b/src/opengl/qwindowsurface_x11gl.cpp index 1061008..7befe03 100644 --- a/src/opengl/qwindowsurface_x11gl.cpp +++ b/src/opengl/qwindowsurface_x11gl.cpp @@ -104,6 +104,12 @@ void QX11GLWindowSurface::flush(QWidget *widget, const QRegion &widgetRegion, co boundingRect.x() + offset.x(), boundingRect.y() + offset.y(), boundingRect.width(), boundingRect.height(), windowBoundingRect.x(), windowBoundingRect.y()); + + QX11GLPixmapData* pmd = static_cast(m_backBuffer.data_ptr().data()); + Q_ASSERT(pmd->context()); + pmd->context()->makeCurrent(); + XSync(X11->display, False); + eglWaitNative(EGL_CORE_NATIVE_ENGINE); } void QX11GLWindowSurface::setGeometry(const QRect &rect) -- cgit v0.12