if (sharedContextTest) {
GameContainer.enableSharedContext();
exitMe = true;
}
AppGameContainer container = new AppGameContainer(new ImageTest());
container.setForceExit(!sharedContextTest);
container.setDisplayMode(800,600,false);
container.start();
if (sharedContextTest) {
System.out.println("Exit first instance");
exitMe = false;
container = new AppGameContainer(new ImageTest());
container.setDisplayMode(800,600,false);
container.start();
}
} catch (SlickException e) {
e.printStackTrace();
}
}