shouldn't be possible... this is problematic

This commit is contained in:
Ben Fry
2015-05-14 10:41:58 -04:00
parent d1d035d0ef
commit 4ba3c6f80e
+6
View File
@@ -42,6 +42,7 @@ import java.awt.Toolkit;
import java.awt.color.ColorSpace;
import java.awt.image.BufferedImage;
// used by loadImage() functions
import javax.imageio.ImageIO;
import javax.swing.ImageIcon;
@@ -1830,6 +1831,11 @@ public class PApplet implements PConstants {
// drawing context needs to be re-built before the next frame.
int pquality = g.quality;
if (insideDraw) {
System.err.println("handleDraw() called before finishing");
System.exit(1);
}
insideDraw = true;
g.beginDraw();
if (recorder != null) {