From: Laszlo Agocs Date: Tue, 12 Aug 2014 09:58:58 +0000 (+0200) Subject: QQuickWidget: resolve samples also when rendering is triggered from resize X-Git-Tag: v5.3.99+beta1~154 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=42d4fb1ee3529c0d67f40160a8ab0f2bd78192c4;p=platform%2Fupstream%2Fqtdeclarative.git QQuickWidget: resolve samples also when rendering is triggered from resize The normal update path did the resolving properly. However when we re-render due to a resize, it was not done at all. Change-Id: I3d55be111a4338e8f3dbb1081972f47daca53b35 Reviewed-by: Gunnar Sletta --- diff --git a/src/quickwidgets/qquickwidget.cpp b/src/quickwidgets/qquickwidget.cpp index 7aef165..ab4ccd7 100644 --- a/src/quickwidgets/qquickwidget.cpp +++ b/src/quickwidgets/qquickwidget.cpp @@ -910,8 +910,13 @@ void QQuickWidget::resizeEvent(QResizeEvent *e) } d->renderControl->render(); - context->functions()->glFlush(); + + if (d->resolvedFbo) { + QRect rect(QPoint(0, 0), d->fbo->size()); + QOpenGLFramebufferObject::blitFramebuffer(d->resolvedFbo, rect, d->fbo, rect); + } + context->doneCurrent(); }