Skip to content
Permalink
Browse files

Android quirk:Some devices don't report GL_OES_framebuffer_object but…

… support it
  • Loading branch information
gabomdq committed Aug 16, 2013
1 parent 4cb0ead commit bb2671b7e798c63a0f8ec97605f01f9a6e05a458
Showing with 2 additions and 1 deletion.
  1. +2 −1 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;

0 comments on commit bb2671b

Please sign in to comment.