From 4a1755ef5a3ee232128770319bab9c21e5c6142d Mon Sep 17 00:00:00 2001 From: Brian Matzon Date: Tue, 18 Oct 2011 17:23:39 +0000 Subject: [PATCH] make Display.destroy a NOP if it hasn't been created yet --- src/java/org/lwjgl/opengl/Display.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/java/org/lwjgl/opengl/Display.java b/src/java/org/lwjgl/opengl/Display.java index 791fb209..0033e28d 100644 --- a/src/java/org/lwjgl/opengl/Display.java +++ b/src/java/org/lwjgl/opengl/Display.java @@ -1107,7 +1107,9 @@ public final class Display { * regardless of whether the Display was the current rendering context. */ public static void destroy() { - drawable.destroy(); + if(isCreated()) { + drawable.destroy(); + } } /*