comparison 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
comparison
equal deleted inserted replaced
5206:25ffd4e5255c 5207:daa5463466c5
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
27 27
28 #ifdef __IPHONEOS__ 28 #include "SDL_opengles2.h"
29 #include <OpenGLES/ES2/gl.h>
30 #include <OpenGLES/ES2/glext.h>
31 #else
32 #include <GLES2/gl2.h>
33 #include <GLES2/gl2ext.h>
34 #endif
35 #include "../SDL_sysrender.h" 29 #include "../SDL_sysrender.h"
36 #include "SDL_shaders_gles2.h" 30 #include "SDL_shaders_gles2.h"
37 31
38 /************************************************************************************************* 32 /*************************************************************************************************
39 * Bootstrap data * 33 * Bootstrap data *
1096 } 1090 }
1097 renderer->info = GLES2_RenderDriver.info; 1091 renderer->info = GLES2_RenderDriver.info;
1098 renderer->window = window; 1092 renderer->window = window;
1099 renderer->driverdata = rdata; 1093 renderer->driverdata = rdata;
1100 1094
1095 renderer->info.flags = SDL_RENDERER_ACCELERATED;
1096
1101 /* Create the GL context */ 1097 /* Create the GL context */
1102 rdata->context = SDL_GL_CreateContext(window); 1098 rdata->context = SDL_GL_CreateContext(window);
1103 if (!rdata->context) 1099 if (!rdata->context)
1104 { 1100 {
1105 SDL_free(renderer); 1101 SDL_free(renderer);