summaryrefslogtreecommitdiff
path: root/src/mgl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mgl.h')
-rw-r--r--src/mgl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mgl.h b/src/mgl.h
index d6165dc0d..335ee48f1 100644
--- a/src/mgl.h
+++ b/src/mgl.h
@@ -29,7 +29,9 @@
#include <GLES/glext.h>
#define APIENTRY GL_APIENTRY
#else
+#ifndef USE_SDL2
#define GL_GLEXT_PROTOTYPES 1
+#endif
#include <SDL_opengl.h>
#include <GL/glext.h>
#endif