From a3bed72e7821364ec9c94c3fb9f4e1141ef10f54 Mon Sep 17 00:00:00 2001 From: codeanticode Date: Sat, 16 Feb 2013 14:44:04 -0500 Subject: [PATCH] always set setgetPixels to false at the end of flush() --- core/src/processing/opengl/PGraphicsOpenGL.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/processing/opengl/PGraphicsOpenGL.java b/core/src/processing/opengl/PGraphicsOpenGL.java index aad25248a..75826ed70 100644 --- a/core/src/processing/opengl/PGraphicsOpenGL.java +++ b/core/src/processing/opengl/PGraphicsOpenGL.java @@ -2247,7 +2247,6 @@ public class PGraphicsOpenGL extends PGraphics { // the changes need to be copied to the screen before // drawing any new geometry. flushPixels(); - setgetPixels = false; } if (hasPoints || hasLines || hasPolys) { @@ -2298,6 +2297,7 @@ public class PGraphicsOpenGL extends PGraphics { tessGeo.clear(); texCache.clear(); + setgetPixels = false; }