Mercurial > sdl-ios-xcode
diff src/video/SDL_video.c @ 1918:092bd3a019c5
Starting on the OpenGL renderer...
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 19 Jul 2006 07:18:45 +0000 |
parents | 83420da906a5 |
children | 00816063b9c9 |
line wrap: on
line diff
--- a/src/video/SDL_video.c Wed Jul 19 05:45:42 2006 +0000 +++ b/src/video/SDL_video.c Wed Jul 19 07:18:45 2006 +0000 @@ -27,6 +27,7 @@ #include "SDL_sysvideo.h" #include "SDL_blit.h" #include "SDL_pixels_c.h" +#include "SDL_renderer_gl.h" #include "SDL_renderer_sw.h" #include "../events/SDL_sysevents.h" #include "../events/SDL_events_c.h" @@ -279,7 +280,10 @@ /* The software renderer is always available */ for (i = 0; i < _this->num_displays; ++i) { if (_this->displays[i].num_render_drivers > 0) { - SDL_AddRenderDriver(i, &SDL_SW_RenderDriver); +#if SDL_VIDEO_OPENGL + SDL_AddRenderDriver(i, &GL_RenderDriver); +#endif + SDL_AddRenderDriver(i, &SW_RenderDriver); } }