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