projects
/
raydungeon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
foo
[raydungeon]
/
src
/
main.c
diff --git
a/src/main.c
b/src/main.c
index
e96732f
..
beb3cf2
100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-1,6
+1,7
@@
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
+#include "opengl.h"
#include "miniglut.h"
#include "game.h"
#include "miniglut.h"
#include "game.h"
@@
-49,6
+50,10
@@
int main(int argc, char **argv)
glutMotionFunc(motion);
glutPassiveMotionFunc(motion);
glutMotionFunc(motion);
glutPassiveMotionFunc(motion);
+ if(init_opengl() == -1) {
+ return 1;
+ }
+
#if defined(__unix__) || defined(unix)
xdpy = glXGetCurrentDisplay();
xwin = glXGetCurrentDrawable();
#if defined(__unix__) || defined(unix)
xdpy = glXGetCurrentDisplay();
xwin = glXGetCurrentDrawable();