Add missing initialized check to Mouse.java

This commit is contained in:
Elias Naur 2004-07-27 17:08:48 +00:00
parent b19f257041
commit 466faf572f
1 changed files with 2 additions and 1 deletions

View File

@ -271,6 +271,7 @@ public class Mouse {
public static void create() throws LWJGLException {
if (!Display.isCreated()) throw new IllegalStateException("Display must be created prior to creating mouse");
if (!initialized)
initialize();
if (created) { return; }
nCreate();