Fix freeze/hang when calling AL.create() before Display.create()

This commit is contained in:
kappaOne 2013-02-09 00:59:11 +00:00
parent 4e0c593644
commit f6c0f17c79
2 changed files with 5 additions and 1 deletions

View File

@ -42,6 +42,11 @@ import com.apple.eio.FileManager;
final class MacOSXSysImplementation extends J2SESysImplementation {
private static final int JNI_VERSION = 23;
static {
// Manually start the AWT Application Loop
java.awt.Toolkit.getDefaultToolkit();
}
public int getRequiredJNIVersion() {
return JNI_VERSION;
}

View File

@ -248,7 +248,6 @@ final class MacOSXDisplay implements DisplayImplementation {
}
public DisplayMode init() throws LWJGLException {
java.awt.Toolkit.getDefaultToolkit(); // force start AWT Application loop
return (DisplayMode) nGetCurrentDisplayMode();
}