diff --git a/modules/juce_opengl/opengl/juce_OpenGLContext.cpp b/modules/juce_opengl/opengl/juce_OpenGLContext.cpp index dfba69183e..4af8df087b 100644 --- a/modules/juce_opengl/opengl/juce_OpenGLContext.cpp +++ b/modules/juce_opengl/opengl/juce_OpenGLContext.cpp @@ -485,6 +485,7 @@ public: if (backgroundProcessCheck.isBackgroundProcess()) { repaintEvent.wait (300); + repaintEvent.reset(); continue; } #endif @@ -497,7 +498,6 @@ public: { repaintEvent.wait (-1); renderFrame(); - repaintEvent.reset(); } else #endif @@ -505,6 +505,8 @@ public: repaintEvent.wait (5); // failed to render, so avoid a tight fail-loop. else if (! context.continuousRepaint && ! shouldExit()) repaintEvent.wait (-1); + + repaintEvent.reset(); } hasInitialised = false;