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:
parent
f939c3728c
commit
6462744b6b
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user