Add missing flush for multisampled QOpenGLWidget

QOpenGLWidget exhibits the same issue as QQuickWidget in the linked bug.

Task-number: QTBUG-39917
Change-Id: Ib231fb88f73c6ef68f12cc3fecf462679e8184a7
Reviewed-by: Jørgen Lind <jorgen.lind@theqtcompany.com>
This commit is contained in:
Laszlo Agocs 2015-03-09 11:57:42 +01:00 committed by Laszlo Agocs
parent ac3502345f
commit 6653e49cf2

View File

@ -768,6 +768,7 @@ void QOpenGLWidgetPrivate::resolveSamples()
q->makeCurrent();
QRect rect(QPoint(0, 0), fbo->size());
QOpenGLFramebufferObject::blitFramebuffer(resolvedFbo, rect, fbo, rect);
QOpenGLContext::currentContext()->functions()->glFlush();
}
}