Join GitHub today
Revert updatePixels() to set modified flag to true #5042
This fixes the bug for now, but uncovers a deeper issue.
PImage.modify flag is now used for two purposes and should be split into two variables:
When a PGraphics is drawn onto other PGraphics, both of these uses collide and may cause problems. This needs to be looked at and resolved later, probably by adding another variable (a flush counter which could be compared with couter of the cached image to tell if cache needs to be updated).