diff --git a/core/src/processing/opengl/PGL.java b/core/src/processing/opengl/PGL.java index 8b471751c..96d7929b7 100644 --- a/core/src/processing/opengl/PGL.java +++ b/core/src/processing/opengl/PGL.java @@ -942,6 +942,8 @@ public abstract class PGL { protected void restoreFirstFrame() { + if (firstFrame == null) return; + IntBuffer tex = allocateIntBuffer(1); genTextures(1, tex);