mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
request draw in PGraphicsOpenGL only if the parent PApplet can draw,
solves #2416
This commit is contained in:
@@ -1697,7 +1697,7 @@ public class PGraphicsOpenGL extends PGraphics {
|
||||
if (primarySurface) {
|
||||
if (initialized) {
|
||||
if (sized) pgl.reinitSurface();
|
||||
pgl.requestDraw();
|
||||
if (parent.canDraw()) pgl.requestDraw();
|
||||
} else {
|
||||
initPrimary();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user