make Display.destroy a NOP if it hasn't been created yet

This commit is contained in:
Brian Matzon 2011-10-18 17:23:39 +00:00
parent 8055e0fd68
commit 4a1755ef5a
1 changed files with 3 additions and 1 deletions

View File

@ -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();
}
}
/*