diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mgl.cpp | 4 | ||||
-rw-r--r-- | src/mgl.h | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/mgl.cpp b/src/mgl.cpp index 58e832b33..54ac6c199 100644 --- a/src/mgl.cpp +++ b/src/mgl.cpp @@ -20,6 +20,8 @@ #include "mgl.h" +#ifdef USE_OPENGL + #include "localconsts.h" #define defName(name) name##_t m##name = nullptr @@ -42,3 +44,5 @@ defName(glSamplerParameteri); #ifdef WIN32 defName(wglGetExtensionsString); #endif + +#endif @@ -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 |