From bb2671b7e798c63a0f8ec97605f01f9a6e05a458 Mon Sep 17 00:00:00 2001 From: Gabriel Jacobo Date: Fri, 16 Aug 2013 14:38:04 -0300 Subject: [PATCH] Android quirk:Some devices don't report GL_OES_framebuffer_object but support it --- src/render/opengles/SDL_render_gles.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/render/opengles/SDL_render_gles.c b/src/render/opengles/SDL_render_gles.c index 5ab3d7725..64d3e8cd2 100644 --- a/src/render/opengles/SDL_render_gles.c +++ b/src/render/opengles/SDL_render_gles.c @@ -375,7 +375,8 @@ GLES_CreateRenderer(SDL_Window * window, Uint32 flags) data->glGetIntegerv(GL_MAX_TEXTURE_SIZE, &value); renderer->info.max_texture_height = value; - if (SDL_GL_ExtensionSupported("GL_OES_framebuffer_object")) { + /* Android does not report GL_OES_framebuffer_object but the functionality seems to be there anyway */ + if (SDL_GL_ExtensionSupported("GL_OES_framebuffer_object") || data->glGenFramebuffersOES) { data->GL_OES_framebuffer_object_supported = SDL_TRUE; renderer->info.flags |= SDL_RENDERER_TARGETTEXTURE;