mirror of
https://github.com/processing/processing4.git
synced 2026-01-28 02:41:08 +01:00
no longer call super.beginDraw() because it may allocate memory
This commit is contained in:
@@ -144,7 +144,12 @@ public class PGraphicsPDF extends PGraphicsJava2D {
|
||||
// g2 = template.createGraphics(width, height, mapper);
|
||||
}
|
||||
// System.out.println("beginDraw " + (System.currentTimeMillis() - t0));
|
||||
super.beginDraw();
|
||||
|
||||
// super in Java2D now creates an image buffer, don't do that
|
||||
// super.beginDraw();
|
||||
checkSettings();
|
||||
resetMatrix(); // reset model matrix
|
||||
vertexCount = 0;
|
||||
|
||||
// Also need to push the matrix since the matrix doesn't reset on each run
|
||||
// http://dev.processing.org/bugs/show_bug.cgi?id=1227
|
||||
|
||||
Reference in New Issue
Block a user