File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -359,7 +359,10 @@ public void endDraw() {
359359// // full copy of the pixels to the surface in this.updatePixels().
360360// setModified();
361361// super.updatePixels();
362- setModified (); // marks pixels as modified so that the pixels will be updated
362+
363+ // Marks pixels as modified so that the pixels will be updated.
364+ // Also sets mx1/y1/x2/y2 so that OpenGL will pick it up.
365+ setModified ();
363366 }
364367
365368
Original file line number Diff line number Diff line change @@ -416,6 +416,10 @@ public boolean isModified() { // ignore
416416
417417 public void setModified () { // ignore
418418 modified = true ;
419+ mx1 = 0 ;
420+ my1 = 0 ;
421+ mx2 = width ;
422+ my2 = height ;
419423 }
420424
421425
Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ X .png data written when .jpg file specified with save/saveFrame()
99X https://github.com/processing/processing/issues/1810
1010X remove() broken in the List classes
1111X https://github.com/processing/processing/issues/1826
12+ X Java2D surfaces not updating when used with OpenGL
13+ X https://github.com/processing/processing/issues/1786
1214
1315andres
1416A PImage not drawn after resize()/get() in P2D/P3D
You can’t perform that action at this time.
0 commit comments