This commit is contained in:
parent
233bc6f0da
commit
124ad35677
@ -266,7 +266,11 @@ public abstract class LwjglAbstractDisplay extends LwjglContext implements Runna
|
|||||||
this.autoFlush = enabled;
|
this.autoFlush = enabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void destroy(boolean waitFor){
|
public void destroy(boolean waitFor) {
|
||||||
|
if (needClose.get()) {
|
||||||
|
return; // Already destroyed
|
||||||
|
}
|
||||||
|
|
||||||
needClose.set(true);
|
needClose.set(true);
|
||||||
if (waitFor)
|
if (waitFor)
|
||||||
waitFor(false);
|
waitFor(false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user