Avoid warning in makeCurrent

This warning is not necessary. We don't warn in doneCurrent or QOpenGLWindow either.

Task-number: QTBUG-44094
Change-Id: Icb3cf51137258c939d5dfb653cf98ded3c147aac
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
This commit is contained in:
Laszlo Agocs 2015-01-28 09:34:30 +01:00
parent f939c3728c
commit 6462744b6b

View File

@ -977,10 +977,8 @@ bool QOpenGLWidget::isValid() const
void QOpenGLWidget::makeCurrent()
{
Q_D(QOpenGLWidget);
if (!d->initialized) {
qWarning("QOpenGLWidget: Cannot make uninitialized widget current");
if (!d->initialized)
return;
}
d->context->makeCurrent(d->surface);