From 6eb35546889445c544d6b173216d5ce0985d1a03 Mon Sep 17 00:00:00 2001 From: Jakub Valtar Date: Tue, 2 May 2017 22:40:25 +0200 Subject: [PATCH] Revert updatePixels() to set modified flag to true PImage.modify flag is now used for two purposes and should be split into two variables: - internally by renderers to signal that pixels[] changed and need to be drawn - externally to signal other renderers that this image changed in some way and they should update their cache Reverts 3e5500c457fe99a950cb5b43c798b4dbf87717cb Fixes #5040 --- core/src/processing/awt/PGraphicsJava2D.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/processing/awt/PGraphicsJava2D.java b/core/src/processing/awt/PGraphicsJava2D.java index edcb3fa36..e34303aad 100644 --- a/core/src/processing/awt/PGraphicsJava2D.java +++ b/core/src/processing/awt/PGraphicsJava2D.java @@ -2797,7 +2797,7 @@ public class PGraphicsJava2D extends PGraphics { if (pixels != null) { getRaster().setDataElements(0, 0, pixelWidth, pixelHeight, pixels); } - modified = false; + modified = true; }