mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
Android quirk:Some devices don't report GL_OES_framebuffer_object but support it
This commit is contained in:
parent
4cb0ead795
commit
bb2671b7e7
@ -375,7 +375,8 @@ GLES_CreateRenderer(SDL_Window * window, Uint32 flags)
|
|||||||
data->glGetIntegerv(GL_MAX_TEXTURE_SIZE, &value);
|
data->glGetIntegerv(GL_MAX_TEXTURE_SIZE, &value);
|
||||||
renderer->info.max_texture_height = 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;
|
data->GL_OES_framebuffer_object_supported = SDL_TRUE;
|
||||||
renderer->info.flags |= SDL_RENDERER_TARGETTEXTURE;
|
renderer->info.flags |= SDL_RENDERER_TARGETTEXTURE;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user