Mercurial > sdl-ios-xcode
comparison src/render/opengles2/SDL_render_gles2.c @ 5231:710d00cb3a6a
Made it possible to disable the rendering subsystem with configure --disable-render
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 08 Feb 2011 10:04:09 -0800 |
parents | 2178ffe17222 |
children | 9c0c4d767ef6 |
comparison
equal
deleted
inserted
replaced
5230:5d01d426f2ea | 5231:710d00cb3a6a |
---|---|
21 DEALINGS IN THE SOFTWARE. | 21 DEALINGS IN THE SOFTWARE. |
22 */ | 22 */ |
23 | 23 |
24 #include "SDL_config.h" | 24 #include "SDL_config.h" |
25 | 25 |
26 #if SDL_VIDEO_RENDER_OGL_ES2 | 26 #if SDL_VIDEO_RENDER_OGL_ES2 && !SDL_RENDER_DISABLED |
27 | 27 |
28 #include "SDL_opengles2.h" | 28 #include "SDL_opengles2.h" |
29 #include "../SDL_sysrender.h" | 29 #include "../SDL_sysrender.h" |
30 #include "SDL_shaders_gles2.h" | 30 #include "SDL_shaders_gles2.h" |
31 | 31 |
1199 renderer->DestroyTexture = &GLES2_DestroyTexture; | 1199 renderer->DestroyTexture = &GLES2_DestroyTexture; |
1200 renderer->DestroyRenderer = &GLES2_DestroyRenderer; | 1200 renderer->DestroyRenderer = &GLES2_DestroyRenderer; |
1201 return renderer; | 1201 return renderer; |
1202 } | 1202 } |
1203 | 1203 |
1204 #endif /* SDL_VIDEO_RENDER_OGL_ES2 */ | 1204 #endif /* SDL_VIDEO_RENDER_OGL_ES2 && !SDL_RENDER_DISABLED */ |
1205 | 1205 |
1206 /* vi: set ts=4 sw=4 expandtab: */ | 1206 /* vi: set ts=4 sw=4 expandtab: */ |