Don't doneCurrent() on hide().
authorGunnar Sletta <gunnar.sletta@jollamobile.com>
Fri, 22 May 2015 06:34:42 +0000 (08:34 +0200)
committerGunnar Sletta <gunnar@sletta.org>
Fri, 22 May 2015 08:45:56 +0000 (08:45 +0000)
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 <laszlo.agocs@theqtcompany.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
src/quick/scenegraph/qsgthreadedrenderloop.cpp

index f7e55c7..417a8e6 100644 (file)
@@ -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();