diff options
Diffstat (limited to 'src/demos/vertexProgRefract/VertexProgRefract.java')
-rw-r--r-- | src/demos/vertexProgRefract/VertexProgRefract.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/demos/vertexProgRefract/VertexProgRefract.java b/src/demos/vertexProgRefract/VertexProgRefract.java index 8663d39..a01a5d7 100644 --- a/src/demos/vertexProgRefract/VertexProgRefract.java +++ b/src/demos/vertexProgRefract/VertexProgRefract.java @@ -453,8 +453,10 @@ public class VertexProgRefract extends Demo { // Internals only below this point // public void shutdownDemo() { - ManipManager.getManipManager().unregisterWindow(drawable); - drawable.removeGLEventListener(this); + if (drawable != null) { + ManipManager.getManipManager().unregisterWindow(drawable); + drawable.removeGLEventListener(this); + } super.shutdownDemo(); } |