void QGLWidget::resizeEvent(QResizeEvent *) { Q_D(QGLWidget); if (!isValid()) return; makeCurrent(); if (!d->glcx->initialized()) glInit(); resizeGL(width(), height()); if (d->olcx) { makeOverlayCurrent(); resizeOverlayGL(width(), height()); } }
void QGLWidget::updateOverlayGL() { Q_D(QGLWidget); if (d->olcx) { makeOverlayCurrent(); paintOverlayGL(); if (d->olcx->format().doubleBuffer()) { if (d->autoSwap) d->olcx->swapBuffers(); } else { glFlush(); } } }
void QGLWidget::resizeEvent(QResizeEvent *) { Q_D(QGLWidget); if(!isValid()) return; if (!isWindow()) d->glcx->d_func()->update = true; makeCurrent(); if(!d->glcx->initialized()) glInit(); resizeGL(width(), height()); if(d->olcx) { makeOverlayCurrent(); aglUpdateContext((AGLContext)d->olcx); resizeOverlayGL(width(), height()); } }