Fix freeze/hang when calling AL.create() before Display.create()
This commit is contained in:
parent
4e0c593644
commit
f6c0f17c79
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue