Add missing initialized check to Mouse.java
This commit is contained in:
parent
b19f257041
commit
466faf572f
|
@ -271,6 +271,7 @@ public class Mouse {
|
||||||
public static void create() throws LWJGLException {
|
public static void create() throws LWJGLException {
|
||||||
if (!Display.isCreated()) throw new IllegalStateException("Display must be created prior to creating mouse");
|
if (!Display.isCreated()) throw new IllegalStateException("Display must be created prior to creating mouse");
|
||||||
|
|
||||||
|
if (!initialized)
|
||||||
initialize();
|
initialize();
|
||||||
if (created) { return; }
|
if (created) { return; }
|
||||||
nCreate();
|
nCreate();
|
||||||
|
|
Loading…
Reference in New Issue