mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
shouldn't be possible... this is problematic
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user