mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-08 16:04:39 +00:00
make Display.destroy a NOP if it hasn't been created yet
This commit is contained in:
parent
8055e0fd68
commit
4a1755ef5a
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue