diff --git a/interface/src/GLCanvas.cpp b/interface/src/GLCanvas.cpp index f2a88fea6d..bf99608c07 100644 --- a/interface/src/GLCanvas.cpp +++ b/interface/src/GLCanvas.cpp @@ -11,6 +11,7 @@ #include "GLCanvas.h" #include #include +#include GLCanvas::GLCanvas() : QGLWidget(QGLFormat(QGL::NoDepthBuffer, QGL::NoStencilBuffer)), _throttleRendering(false), _idleRenderInterval(100) { } @@ -24,7 +25,7 @@ void GLCanvas::initializeGL() { } void GLCanvas::paintGL() { - if (!_throttleRendering) { + if (!_throttleRendering && !Application::getInstance()->getWindow()->isMinimized()) { Application::getInstance()->paintGL(); } } @@ -78,10 +79,11 @@ void GLCanvas::activeChanged() { } } -void GLCanvas::throttleRender() -{ +void GLCanvas::throttleRender() { _frameTimer.start(_idleRenderInterval); - Application::getInstance()->paintGL(); + if (!Application::getInstance()->getWindow()->isMinimized()) { + Application::getInstance()->paintGL(); + } } int updateTime = 0;