diff options
author | Laszlo Agocs <laszlo.agocs@digia.com> | 2015-03-09 11:57:42 +0100 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2015-03-09 14:49:31 +0000 |
commit | 6653e49cf295cd052888ec172f17e088970e4ab4 (patch) | |
tree | 728b418672e7628682d411a2d854e11576e3f8f5 /src | |
parent | ac3502345f98993c56d6af147c849f7003bb292b (diff) |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/widgets/kernel/qopenglwidget.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/widgets/kernel/qopenglwidget.cpp b/src/widgets/kernel/qopenglwidget.cpp index f63685c37a..3b33894627 100644 --- a/src/widgets/kernel/qopenglwidget.cpp +++ b/src/widgets/kernel/qopenglwidget.cpp @@ -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(); } } |