src/render/opengles2/SDL_render_gles2.c
changeset 6190 519380462400
parent 6188 e82023802002
child 6232 37e8d0736366
equal deleted inserted replaced
6189:b5a665fbaedc 6190:519380462400
    25 #include "SDL_hints.h"
    25 #include "SDL_hints.h"
    26 #include "SDL_opengles2.h"
    26 #include "SDL_opengles2.h"
    27 #include "../SDL_sysrender.h"
    27 #include "../SDL_sysrender.h"
    28 #include "SDL_shaders_gles2.h"
    28 #include "SDL_shaders_gles2.h"
    29 
    29 
    30 /* Used to re-create the window with OpenGL capability */
    30 /* Used to re-create the window with OpenGL ES capability */
    31 extern int SDL_RecreateWindow(SDL_Window * window, Uint32 flags);
    31 extern int SDL_RecreateWindow(SDL_Window * window, Uint32 flags);
    32 
    32 
    33 /*************************************************************************************************
    33 /*************************************************************************************************
    34  * Bootstrap data                                                                                *
    34  * Bootstrap data                                                                                *
    35  *************************************************************************************************/
    35  *************************************************************************************************/
   156 
   156 
   157 static SDL_GLContext SDL_CurrentContext = NULL;
   157 static SDL_GLContext SDL_CurrentContext = NULL;
   158 
   158 
   159 static int GLES2_LoadFunctions(GLES2_DriverContext * data)
   159 static int GLES2_LoadFunctions(GLES2_DriverContext * data)
   160 {
   160 {
   161 #ifdef __SDL_NOGETPROCADDR__
   161 #if SDL_VIDEO_DRIVER_UIKIT
       
   162 #define __SDL_NOGETPROCADDR__
       
   163 #elif SDL_VIDEO_DRIVER_ANDROID
       
   164 #define __SDL_NOGETPROCADDR__
       
   165 #elif SDL_VIDEO_DRIVER_PANDORA
       
   166 #define __SDL_NOGETPROCADDR__
       
   167 #endif
       
   168 
       
   169 #if defined __SDL_NOGETPROCADDR__
   162 #define SDL_PROC(ret,func,params) data->func=func;
   170 #define SDL_PROC(ret,func,params) data->func=func;
   163 #else
   171 #else
   164 #define SDL_PROC(ret,func,params) \
   172 #define SDL_PROC(ret,func,params) \
   165     do { \
   173     do { \
   166         data->func = SDL_GL_GetProcAddress(#func); \
   174         data->func = SDL_GL_GetProcAddress(#func); \