Android quirk:Some devices don't report GL_OES_framebuffer_object but support it
authorGabriel Jacobo <gabomdq@gmail.com>
Fri, 16 Aug 2013 14:38:04 -0300
changeset 7644037e5a9af745
parent 7643 bae07d884b52
child 7645 cc775832d501
Android quirk:Some devices don't report GL_OES_framebuffer_object but support it
src/render/opengles/SDL_render_gles.c
     1.1 --- a/src/render/opengles/SDL_render_gles.c	Fri Aug 16 12:51:29 2013 -0400
     1.2 +++ b/src/render/opengles/SDL_render_gles.c	Fri Aug 16 14:38:04 2013 -0300
     1.3 @@ -375,7 +375,8 @@
     1.4      data->glGetIntegerv(GL_MAX_TEXTURE_SIZE, &value);
     1.5      renderer->info.max_texture_height = value;
     1.6  
     1.7 -    if (SDL_GL_ExtensionSupported("GL_OES_framebuffer_object")) {
     1.8 +    /* Android does not report GL_OES_framebuffer_object but the functionality seems to be there anyway */
     1.9 +    if (SDL_GL_ExtensionSupported("GL_OES_framebuffer_object") || data->glGenFramebuffersOES) {
    1.10          data->GL_OES_framebuffer_object_supported = SDL_TRUE;
    1.11          renderer->info.flags |= SDL_RENDERER_TARGETTEXTURE;
    1.12