Add shadows and light effects
[mercenary-reloaded.git] / src / libsdl / sdl.c
index b10efec..704caac 100644 (file)
@@ -23,9 +23,8 @@
 #include "print.h"
 #include "../../include/keycodes.h"
 #include "sdl.h"
-
 #include <SDL2/SDL.h>
-#define GL3_PROTOTYPES 1
+#define GLEW_STATIC
 #include <GL/glew.h>
 
 static int sdl_initialized = 0;
@@ -163,16 +162,13 @@ retry_without_multisampling:
                // continue anyway
        }
 
-// seems like a hack to me. do we need this?
 #ifndef __APPLE__
-#if !defined(_WIN32)
        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);