From a8410384e3b74b0b057422f7faa1f772b7b38fbf Mon Sep 17 00:00:00 2001 From: Gunnar Sletta Date: Fri, 22 May 2015 08:34:42 +0200 Subject: [PATCH] Don't doneCurrent() on hide(). This hurts interoperability with OpenCL on windows and the other renderloops don't do it either, so to be consistent, lets not. Change-Id: Ie06842957561c8933690633469b8b3a026ff399b Task-number: QTBUG-46273 Reviewed-by: Laszlo Agocs Reviewed-by: Friedemann Kleint --- src/quick/scenegraph/qsgthreadedrenderloop.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/quick/scenegraph/qsgthreadedrenderloop.cpp b/src/quick/scenegraph/qsgthreadedrenderloop.cpp index f7e55c7..417a8e6 100644 --- a/src/quick/scenegraph/qsgthreadedrenderloop.cpp +++ b/src/quick/scenegraph/qsgthreadedrenderloop.cpp @@ -356,7 +356,6 @@ bool QSGRenderThread::event(QEvent *e) if (window) { QQuickWindowPrivate::get(window)->fireAboutToStop(); qCDebug(QSG_LOG_RENDERLOOP) << QSG_RT_PAD << "- window removed"; - gl->doneCurrent(); window = 0; } waitCondition.wakeOne(); -- 2.7.4