From c1ce224bd70d8e1beb20b956d8f9bcc7797112b4 Mon Sep 17 00:00:00 2001 From: Yoshi Sugawara Date: Fri, 21 Jul 2017 17:19:52 -1000 Subject: [PATCH] GL_CAPS_TEX_STORAGE_EXT not working/supported on iOS, so disabling --- libretro-common/gfx/gl_capabilities.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libretro-common/gfx/gl_capabilities.c b/libretro-common/gfx/gl_capabilities.c index 27a2ffed3f..0cc8eda592 100644 --- a/libretro-common/gfx/gl_capabilities.c +++ b/libretro-common/gfx/gl_capabilities.c @@ -298,12 +298,7 @@ bool gl_check_capability(enum gl_capability_enum enum_idx) #endif break; case GL_CAPS_BGRA8888: -#ifdef TARGET_OS_IPHONE - /* In iOS, this capability is reported but is not working. */ - /* Results in an error when glTexSubImage2D is called with this pixel format. */ - /* Resort to doing the pixel format conversion on the cpu */ - return false; -#elif HAVE_OPENGLES +#ifdef HAVE_OPENGLES /* There are both APPLE and EXT variants. */ if (gl_query_extension("BGRA8888") && !strstr(renderer, "VideoCore")) return true; @@ -323,8 +318,13 @@ bool gl_check_capability(enum gl_capability_enum enum_idx) #endif break; case GL_CAPS_TEX_STORAGE_EXT: +#ifdef TARGET_OS_IPHONE + /* Not working on iOS */ + return false; +#else if (gl_query_extension("EXT_texture_storage")) return true; +#endif break; case GL_CAPS_NONE: default: