added Display.create/destroy. Fixes an error on mac, since OpenGL has to be initialized before creating ILUT

This commit is contained in:
Brian Matzon 2007-01-07 20:41:45 +00:00
parent 09a9f4953f
commit 00db5fcb85
1 changed files with 2 additions and 0 deletions

View File

@ -52,6 +52,7 @@ public class BasicTest {
public static void main(String args[]) {
try {
org.lwjgl.opengl.Display.create();
IL.create();
ILU.create();
ILUT.create();
@ -118,6 +119,7 @@ public class BasicTest {
ILUT.destroy();
ILU.destroy();
IL.destroy();
org.lwjgl.opengl.Display.destroy();
} catch (Exception e) {
e.printStackTrace();
}