src/render/opengles2/SDL_render_gles2.c
changeset 6190 519380462400
parent 6188 e82023802002
child 6232 37e8d0736366
     1.1 --- a/src/render/opengles2/SDL_render_gles2.c	Fri Aug 26 13:23:40 2011 +0100
     1.2 +++ b/src/render/opengles2/SDL_render_gles2.c	Sun Jan 08 13:31:22 2012 -0500
     1.3 @@ -27,7 +27,7 @@
     1.4  #include "../SDL_sysrender.h"
     1.5  #include "SDL_shaders_gles2.h"
     1.6  
     1.7 -/* Used to re-create the window with OpenGL capability */
     1.8 +/* Used to re-create the window with OpenGL ES capability */
     1.9  extern int SDL_RecreateWindow(SDL_Window * window, Uint32 flags);
    1.10  
    1.11  /*************************************************************************************************
    1.12 @@ -158,7 +158,15 @@
    1.13  
    1.14  static int GLES2_LoadFunctions(GLES2_DriverContext * data)
    1.15  {
    1.16 -#ifdef __SDL_NOGETPROCADDR__
    1.17 +#if SDL_VIDEO_DRIVER_UIKIT
    1.18 +#define __SDL_NOGETPROCADDR__
    1.19 +#elif SDL_VIDEO_DRIVER_ANDROID
    1.20 +#define __SDL_NOGETPROCADDR__
    1.21 +#elif SDL_VIDEO_DRIVER_PANDORA
    1.22 +#define __SDL_NOGETPROCADDR__
    1.23 +#endif
    1.24 +
    1.25 +#if defined __SDL_NOGETPROCADDR__
    1.26  #define SDL_PROC(ret,func,params) data->func=func;
    1.27  #else
    1.28  #define SDL_PROC(ret,func,params) \