added Display.create/destroy. Fixes an error on mac, since OpenGL has to be initialized before creating ILUT
This commit is contained in:
parent
09a9f4953f
commit
00db5fcb85
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue