Fix garbled resize with QOpenGLWidget when using multi-sampling.

If you configure QOpenGLWidget to use sampling, the 'resolvedFbo' isn't
updated during resizing. This leads to garbled views.

Change-Id: I9f9265520134bcf12436778773507df936c5fbb6
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
This commit is contained in:
Dyami Caliri 2014-09-09 12:07:09 -07:00
parent 3203239bd8
commit 71df09b6cc

View File

@ -896,6 +896,7 @@ void QOpenGLWidget::resizeEvent(QResizeEvent *e)
resizeGL(width(), height());
d->invokeUserPaint();
d->context->functions()->glFlush();
d->resolveSamples();
}
/*!