projects
/
mercenary-reloaded.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cross compile with MinGW-W64
[mercenary-reloaded.git]
/
src
/
libsdl
/
sdl.c
diff --git
a/src/libsdl/sdl.c
b/src/libsdl/sdl.c
index
45f859d
..
14e5440
100644
(file)
--- a/
src/libsdl/sdl.c
+++ b/
src/libsdl/sdl.c
@@
-114,13
+114,16
@@
int init_sdl(const char *progname, int width, int height, int sound_samplerate,
// continue anyway
}
// continue anyway
}
+// seems like a hack to me. do we need this?
#ifndef __APPLE__
#ifndef __APPLE__
+#if !defined(_WIN32)
glewExperimental = GL_TRUE;
if (glewInit() != GLEW_OK) {
print_error("Failed to init GLEW\n");
goto error;
}
#endif
glewExperimental = GL_TRUE;
if (glewInit() != GLEW_OK) {
print_error("Failed to init GLEW\n");
goto error;
}
#endif
+#endif
/* just in case */
glDisable(GL_DEPTH_TEST);
/* just in case */
glDisable(GL_DEPTH_TEST);