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; }