mirror of
https://github.com/processing/processing4.git
synced 2026-02-14 19:05:34 +01:00
canDraw() in PApplet to better control GL draw requests
This commit is contained in:
@@ -1189,7 +1189,7 @@ public class PGL {
|
||||
|
||||
|
||||
protected void requestDraw() {
|
||||
if (pg.initialized) {
|
||||
if (pg.initialized && pg.parent.canDraw()) {
|
||||
try {
|
||||
if (toolkit == AWT) {
|
||||
canvasAWT.display();
|
||||
|
||||
Reference in New Issue
Block a user