Fixed building on Android, added SDL_opengles2.h, removed unnecessary SDL_glesfuncs.h

--HG--
rename : src/video/SDL_glfuncs.h => src/render/opengl/SDL_glfuncs.h
This commit is contained in:
Sam Lantinga 2011-02-06 02:35:14 -08:00
parent cc1f36b7dc
commit 58e9ea986f
13 changed files with 152 additions and 1387 deletions

View file

@ -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 @@ GLES2_CreateRenderer(SDL_Window *window, Uint32 flags)
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)