|
From: <ma...@us...> - 2011-10-18 17:23:45
|
Revision: 3681
http://java-game-lib.svn.sourceforge.net/java-game-lib/?rev=3681&view=rev
Author: matzon
Date: 2011-10-18 17:23:39 +0000 (Tue, 18 Oct 2011)
Log Message:
-----------
make Display.destroy a NOP if it hasn't been created yet
Modified Paths:
--------------
trunk/LWJGL/src/java/org/lwjgl/opengl/Display.java
Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/Display.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/opengl/Display.java 2011-10-17 07:45:46 UTC (rev 3680)
+++ trunk/LWJGL/src/java/org/lwjgl/opengl/Display.java 2011-10-18 17:23:39 UTC (rev 3681)
@@ -1107,7 +1107,9 @@
* regardless of whether the Display was the current rendering context.
*/
public static void destroy() {
- drawable.destroy();
+ if(isCreated()) {
+ drawable.destroy();
+ }
}
/*
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|