make Display.destroy a NOP if it hasn't been created yet
This commit is contained in:
parent
8055e0fd68
commit
4a1755ef5a
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue