Browse Source

OpenGL: Correctly reset repaintEvent

v6.1.6
ed 4 years ago
parent
commit
f0002845d5
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      modules/juce_opengl/opengl/juce_OpenGLContext.cpp

+ 3
- 1
modules/juce_opengl/opengl/juce_OpenGLContext.cpp View File

@@ -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;


Loading…
Cancel
Save