GL_CAPS_TEX_STORAGE_EXT not working/supported on iOS, so disabling

This commit is contained in:
Yoshi Sugawara 2017-07-21 17:19:52 -10:00
parent 6ea0eae4bb
commit c1ce224bd7

View File

@ -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: