From: Laszlo Agocs Date: Mon, 20 Oct 2014 11:54:26 +0000 (+0200) Subject: Remove unnecessary doneCurrent in QQuickWidget X-Git-Tag: v5.4.0~56 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0fc6e4b2c3e187ab60a111b1d1871c1f3e846600;p=platform%2Fupstream%2Fqtdeclarative.git Remove unnecessary doneCurrent in QQuickWidget Excessive makeCurrent - doneCurrent pairs should be avoided. We already do this in QOpenGLWidget and the QPlatformBackingStore composition code. Remove the doneCurrent from QQuickWidget too. Change-Id: I6f998d381c33880c470f34d7c8462b6ed8cd8ae9 Reviewed-by: Gunnar Sletta --- diff --git a/src/quickwidgets/qquickwidget.cpp b/src/quickwidgets/qquickwidget.cpp index 4c40288..83fe586 100644 --- a/src/quickwidgets/qquickwidget.cpp +++ b/src/quickwidgets/qquickwidget.cpp @@ -216,8 +216,6 @@ void QQuickWidgetPrivate::render(bool needsSync) QRect rect(QPoint(0, 0), fbo->size()); QOpenGLFramebufferObject::blitFramebuffer(resolvedFbo, rect, fbo, rect); } - - context->doneCurrent(); } void QQuickWidgetPrivate::renderSceneGraph()