src/video/SDL_video.c
changeset 3489 e1bd98b56e94
parent 3488 3d2f42580488
child 3500 4b594623401b
     1.1 --- a/src/video/SDL_video.c	Tue Nov 24 16:43:18 2009 +0000
     1.2 +++ b/src/video/SDL_video.c	Tue Nov 24 19:28:27 2009 +0000
     1.3 @@ -1493,9 +1493,16 @@
     1.4          char *override = SDL_getenv("SDL_VIDEO_RENDERER");
     1.5          int n = SDL_GetNumRenderDrivers();
     1.6  
     1.7 +#if SDL_VIDEO_RENDER_OGL
     1.8          if (!override && (window->flags & SDL_WINDOW_OPENGL)) {
     1.9              override = "opengl";
    1.10          }
    1.11 +#endif /* SDL_VIDEO_RENDER_OGL */
    1.12 +#if SDL_VIDEO_RENDER_OGL_ES
    1.13 +        if (!override && (window->flags & SDL_WINDOW_OPENGL)) {
    1.14 +            override = "opengl_es";
    1.15 +        }
    1.16 +#endif /* SDL_VIDEO_RENDER_OGL_ES */
    1.17          if (override) {
    1.18              for (index = 0; index < n; ++index) {
    1.19                  SDL_RenderDriver *driver =