mirror of
https://github.com/libretro/RetroArch
synced 2025-04-17 11:43:00 +00:00
Merge pull request #5194 from yoshisuga/ios_fix_texture_storage_capability
[iOS] Fix rendering for some cores (black screen issue)
This commit is contained in:
commit
69c05cd7b4
@ -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