Commit 37cf28b8fa7c7f31da68971ecdf9d519414dad0b

henry 2005-01-03T07:54:09

Added test for SDL

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/include/FTGL.h b/include/FTGL.h
index f338ae9..11f1643 100755
--- a/include/FTGL.h
+++ b/include/FTGL.h
@@ -37,7 +37,9 @@ typedef float    FTGL_FLOAT;
 
     // Non windows platforms - don't require nonsense as seen above :-)    
     #ifndef __gl_h_
-        #ifdef __APPLE_CC__
+        #ifdef SDL_main
+            #include "SDL_opengl.h"
+        #elif __APPLE_CC__
             #include <OpenGL/gl.h>
             #include <OpenGL/glu.h>
         #else