Browse Source

Fixed including OpenGL ES on iOS without any other SDL headers

Sam Lantinga 9 years ago
parent
commit
7f28853b89
2 changed files with 3 additions and 0 deletions
  1. 1 0
      include/SDL_opengles.h
  2. 2 0
      include/SDL_opengles2.h

+ 1 - 0
include/SDL_opengles.h

@@ -24,6 +24,7 @@
  *
  *
  *  This is a simple file to encapsulate the OpenGL ES 1.X API headers.
  *  This is a simple file to encapsulate the OpenGL ES 1.X API headers.
  */
  */
+#include "SDL_config.h"
 
 
 #ifdef __IPHONEOS__
 #ifdef __IPHONEOS__
 #include <OpenGLES/ES1/gl.h>
 #include <OpenGLES/ES1/gl.h>

+ 2 - 0
include/SDL_opengles2.h

@@ -24,6 +24,8 @@
  *
  *
  *  This is a simple file to encapsulate the OpenGL ES 2.0 API headers.
  *  This is a simple file to encapsulate the OpenGL ES 2.0 API headers.
  */
  */
+#include "SDL_config.h"
+
 #ifndef _MSC_VER
 #ifndef _MSC_VER
 
 
 #ifdef __IPHONEOS__
 #ifdef __IPHONEOS__