Mercurial > sdl-ios-xcode
diff src/render/opengles2/SDL_render_gles2.c @ 5207:daa5463466c5
Fixed building on Android, added SDL_opengles2.h, removed unnecessary SDL_glesfuncs.h
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 06 Feb 2011 02:35:14 -0800 |
parents | 1f2b17f42fd0 |
children | 7d64745f1363 |
line wrap: on
line diff
--- a/src/render/opengles2/SDL_render_gles2.c Sun Feb 06 00:48:41 2011 -0800 +++ b/src/render/opengles2/SDL_render_gles2.c Sun Feb 06 02:35:14 2011 -0800 @@ -25,13 +25,7 @@ #if SDL_VIDEO_RENDER_OGL_ES2 -#ifdef __IPHONEOS__ -#include <OpenGLES/ES2/gl.h> -#include <OpenGLES/ES2/glext.h> -#else -#include <GLES2/gl2.h> -#include <GLES2/gl2ext.h> -#endif +#include "SDL_opengles2.h" #include "../SDL_sysrender.h" #include "SDL_shaders_gles2.h" @@ -1098,6 +1092,8 @@ renderer->window = window; renderer->driverdata = rdata; + renderer->info.flags = SDL_RENDERER_ACCELERATED; + /* Create the GL context */ rdata->context = SDL_GL_CreateContext(window); if (!rdata->context)