check that controller is actually created!

This commit is contained in:
Brian Matzon 2004-12-07 21:29:17 +00:00
parent 2c5cab2fa1
commit fa9cd75463
1 changed files with 4 additions and 1 deletions

View File

@ -62,7 +62,10 @@ public class ControllerCreationTest {
setDisplayMode(); setDisplayMode();
Display.setFullscreen(fullscreen); Display.setFullscreen(fullscreen);
Display.create(); Display.create();
if(!Controller.isCreated()) {
throw new Exception("Controller could not be created");
}
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
System.exit(-1); System.exit(-1);