|
|
@ -117,13 +117,15 @@ public abstract class LwjglAbstractDisplay extends LwjglContext implements Runna |
|
|
|
super.internalCreate(); |
|
|
|
super.internalCreate(); |
|
|
|
} catch (Exception ex) { |
|
|
|
} catch (Exception ex) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
if (Display.isCreated()) |
|
|
|
if (Display.isCreated()) { |
|
|
|
Display.destroy(); |
|
|
|
Display.destroy(); |
|
|
|
|
|
|
|
} |
|
|
|
} catch (Exception ex2){ |
|
|
|
} catch (Exception ex2){ |
|
|
|
logger.log(Level.WARNING, null, ex2); |
|
|
|
logger.log(Level.WARNING, null, ex2); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
listener.handleError("Failed to create display", ex); |
|
|
|
listener.handleError("Failed to create display", ex); |
|
|
|
|
|
|
|
createdLock.notifyAll(); // Release the lock, so start(true) doesn't deadlock.
|
|
|
|
return false; // if we failed to create display, do not continue
|
|
|
|
return false; // if we failed to create display, do not continue
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|