diff --git a/java/libraries/pdf/src/processing/pdf/PGraphicsPDF.java b/java/libraries/pdf/src/processing/pdf/PGraphicsPDF.java index e5da31b99..2c6e8ae88 100644 --- a/java/libraries/pdf/src/processing/pdf/PGraphicsPDF.java +++ b/java/libraries/pdf/src/processing/pdf/PGraphicsPDF.java @@ -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