diff options
author | don bright <hugh.m.bright@gmail.com> | 2013-01-26 22:18:31 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2013-01-26 22:19:14 (GMT) |
commit | f17a282220903d7bb494deae046d3e786ef6b1ca (patch) | |
tree | d27af52db52fec9c931caf049cfd212ce576e620 /src/system-gl.h | |
parent | c133ae3b7d7f780d440b74dabe36cff355d9e30c (diff) |
cleanups. and restore accidentally deleted old system-gl.h
Diffstat (limited to 'src/system-gl.h')
-rw-r--r-- | src/system-gl.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/system-gl.h b/src/system-gl.h index dd465f6..d7de3c6 100644 --- a/src/system-gl.h +++ b/src/system-gl.h @@ -1,16 +1,16 @@ #ifndef SYSTEMGL_H_ #define SYSTEMGL_H_ -#ifdef _WIN32 -// Prevent obtuse compile errors on Win32/mingw32. This is related -// GLU Tessellation callback definitions, and how glew deals with them. -#include <windows.h> -#endif - #include <GL/glew.h> -#include <string> -std::string glew_dump(bool dumpall=false); -bool report_glerror(const char *task); +#ifdef __APPLE__ + #include <OpenGL/OpenGL.h> +#else + #include <GL/gl.h> + #include <GL/glu.h> + #ifdef _WIN32 + #include <windows.h> // For the CALLBACK macro + #endif +#endif #endif |