mirror of
https://github.com/libretro/RetroArch
synced 2025-02-04 03:40:03 +00:00
GL_CAPS_TEX_STORAGE_EXT not working/supported on iOS, so disabling
This commit is contained in:
parent
6ea0eae4bb
commit
c1ce224bd7
@ -298,12 +298,7 @@ bool gl_check_capability(enum gl_capability_enum enum_idx)
|
|||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
case GL_CAPS_BGRA8888:
|
case GL_CAPS_BGRA8888:
|
||||||
#ifdef TARGET_OS_IPHONE
|
#ifdef HAVE_OPENGLES
|
||||||
/* 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
|
|
||||||
/* There are both APPLE and EXT variants. */
|
/* There are both APPLE and EXT variants. */
|
||||||
if (gl_query_extension("BGRA8888") && !strstr(renderer, "VideoCore"))
|
if (gl_query_extension("BGRA8888") && !strstr(renderer, "VideoCore"))
|
||||||
return true;
|
return true;
|
||||||
@ -323,8 +318,13 @@ bool gl_check_capability(enum gl_capability_enum enum_idx)
|
|||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
case GL_CAPS_TEX_STORAGE_EXT:
|
case GL_CAPS_TEX_STORAGE_EXT:
|
||||||
|
#ifdef TARGET_OS_IPHONE
|
||||||
|
/* Not working on iOS */
|
||||||
|
return false;
|
||||||
|
#else
|
||||||
if (gl_query_extension("EXT_texture_storage"))
|
if (gl_query_extension("EXT_texture_storage"))
|
||||||
return true;
|
return true;
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
case GL_CAPS_NONE:
|
case GL_CAPS_NONE:
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user