check that controller is actually created!
This commit is contained in:
parent
2c5cab2fa1
commit
fa9cd75463
|
@ -62,7 +62,10 @@ public class ControllerCreationTest {
|
|||
setDisplayMode();
|
||||
Display.setFullscreen(fullscreen);
|
||||
Display.create();
|
||||
|
||||
|
||||
if(!Controller.isCreated()) {
|
||||
throw new Exception("Controller could not be created");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
System.exit(-1);
|
||||
|
|
Loading…
Reference in New Issue