Skip to content

Commit

Permalink
Android quirk:Some devices don't report GL_OES_framebuffer_object but…
Browse files Browse the repository at this point in the history
… support it
  • Loading branch information
gabomdq committed Aug 16, 2013
1 parent 4cb0ead commit bb2671b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/render/opengles/SDL_render_gles.c
Expand Up @@ -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;

Expand Down

0 comments on commit bb2671b

Please sign in to comment.