Queue GL updates instead of drawing right away.

This commit is contained in:
leo 2014-09-14 00:52:27 +00:00
parent 4e44915e49
commit d95d0ac68a

View file

@ -20,9 +20,9 @@ void lcGLWidget::MakeCurrent()
void lcGLWidget::Redraw()
{
QGLWidget* widget = (QGLWidget*)mWidget;
QGLWidget* Widget = (QGLWidget*)mWidget;
widget->updateGL();
QTimer::singleShot(0, Widget, SLOT(updateGL()));
}
void* lcGLWidget::GetExtensionAddress(const char* FunctionName)