Procházet zdrojové kódy

Fixed including OpenGL ES on iOS without any other SDL headers

Sam Lantinga před 8 roky
rodič
revize
7f28853b89
2 změnil soubory, kde provedl 3 přidání a 0 odebrání
  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.
  */
+#include "SDL_config.h"
 
 #ifdef __IPHONEOS__
 #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.
  */
+#include "SDL_config.h"
+
 #ifndef _MSC_VER
 
 #ifdef __IPHONEOS__