Bug 526 : can only draw PGraphics once offscreen with JAVA2D
Last modified: 2007-07-06 20:59




Status:
RESOLVED
Resolution:
FIXED -
Priority:
P1
Severity:
normal

 

Reporter:
ml
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2007-02-28 02:34
Example code below. The PGraphics is only updated once on the first frame,
and is then static. Any possible workaround?

Tested different versions of processing, not working with 0124 - 0123 - 0119.
I'm on windows xp.


PGraphics pg;

void setup() {
size(200, 200);
pg = createGraphics(80, 80, JAVA2D);
}

void draw() {
pg.beginDraw();
pg.background(102);
pg.stroke(255);
pg.line(40, 40, mouseX, mouseY);
pg.endDraw();
image(pg, 10, 10);
}
Additional Comment #1 From fry 2007-03-07 17:06
Additional Comment #2 From fry 2007-06-18 21:02
now fixed for 0125.
Additional Comment #3 From fry 2007-07-06 20:59
*** Bug 593 has been marked as a duplicate of this bug. ***