summaryrefslogtreecommitdiff
path: root/src/mgl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mgl.h')
-rw-r--r--src/mgl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mgl.h b/src/mgl.h
index 65d5f8548..e01ad6ec2 100644
--- a/src/mgl.h
+++ b/src/mgl.h
@@ -21,6 +21,9 @@
#ifndef MGL_H
#define MGL_H
+#include "main.h"
+#ifdef USE_OPENGL
+
#define GL_GLEXT_PROTOTYPES 1
#include <SDL_opengl.h>
@@ -79,3 +82,4 @@ defNameE(wglGetExtensionsString);
#endif
#endif
+#endif