mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-18 08:52:41 +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
|
||||
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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user