From f870930ed6ff3882d0c3bd2745beaf5053b7fa2a Mon Sep 17 00:00:00 2001 From: codeanticode Date: Wed, 4 May 2016 21:53:09 -0400 Subject: [PATCH] null buffer check --- core/src/processing/opengl/PGL.java | 2 ++ 1 file changed, 2 insertions(+) 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);