mirror of
https://github.com/processing/processing4.git
synced 2026-03-03 03:04:31 +01:00
deal with windows flickering during resize (fixes #386)
This commit is contained in:
@@ -798,6 +798,9 @@ public class PSurfaceJOGL implements PSurface {
|
||||
if (display.getEDTUtil().isCurrentThreadEDT()) {
|
||||
// For some unknown reason, a few frames of the animator run on
|
||||
// the EDT. For those, we just skip this draw call to avoid badness.
|
||||
// See below for explanation of this two line hack.
|
||||
pgl.beginRender();
|
||||
pgl.endRender(sketch.sketchWindowColor());
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user