canDraw() in PApplet to better control GL draw requests

This commit is contained in:
codeanticode
2013-02-23 16:45:42 -05:00
parent f56e9f3581
commit d3d453d4e9
5 changed files with 36 additions and 22 deletions

View File

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