foo
[raydungeon] / src / main.c
index e96732f..beb3cf2 100644 (file)
@@ -1,6 +1,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <assert.h>
+#include "opengl.h"
 #include "miniglut.h"
 #include "game.h"
 
@@ -49,6 +50,10 @@ int main(int argc, char **argv)
        glutMotionFunc(motion);
        glutPassiveMotionFunc(motion);
 
+       if(init_opengl() == -1) {
+               return 1;
+       }
+
 #if defined(__unix__) || defined(unix)
        xdpy = glXGetCurrentDisplay();
        xwin = glXGetCurrentDrawable();