fix requestionImage() problem with Java2D

This commit is contained in:
benfry
2009-01-07 21:36:49 +00:00
parent 7a21728aed
commit e23be1da5b
2 changed files with 5 additions and 0 deletions

View File

@@ -786,6 +786,9 @@ public class PGraphicsJava2D extends PGraphics /*PGraphics2D*/ {
protected void imageImpl(PImage who,
float x1, float y1, float x2, float y2,
int u1, int v1, int u2, int v2) {
// Image not ready yet, or an error
if (who.width <= 0 || who.height <= 0) return;
if (who.getCache(this) == null) {
//System.out.println("making new image cache");
who.setCache(this, new ImageCache(who));

View File

@@ -1,4 +1,6 @@
0164 core
X requestImage() causing problems with JAVA2D
P1 _ OutOfMemoryError with ellipse() in P3D and OPENGL
P1 _ http://dev.processing.org/bugs/show_bug.cgi?id=1086
P4 _ point(x,y) ignores noStroke() (in some renderers)