src/render/opengles2/SDL_render_gles2.c
changeset 5204 daa5463466c5
parent 5202 1f2b17f42fd0
child 5206 7d64745f1363
--- 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)