QOpenGLWidget: Avoid crashing if updateGL is called before the first resize
Change-Id: I9e7788334de98b35dc5d6beee97a63783a1fe267 Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
This commit is contained in:
parent
1d58ec346a
commit
04f6dffbf9
@ -147,6 +147,9 @@ void QOpenGLWidget::paintGL()
|
||||
void QOpenGLWidget::updateGL()
|
||||
{
|
||||
Q_D(QOpenGLWidget);
|
||||
if (d->uninitialized)
|
||||
return;
|
||||
|
||||
makeCurrent();
|
||||
paintGL();
|
||||
d->context.functions()->glFlush();
|
||||
|
Loading…
Reference in New Issue
Block a user