Merge pull request #7258 from yoshisuga/ios-startup-fix

[iOS] Comment out unsupported code for iOS for now, so that it does not crash
This commit is contained in:
Twinaphex 2018-09-20 10:53:36 +02:00 committed by GitHub
commit 765e225f48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -299,7 +299,8 @@ static void *cocoagl_gfx_ctx_init(video_frame_info_t *video_info, void *video_dr
{
#if defined(HAVE_COCOATOUCH)
case GFX_CTX_OPENGL_ES_API:
[apple_platform setViewType:APPLE_VIEW_TYPE_OPENGL_ES];
// setViewType is not (yet?) defined for iOS
// [apple_platform setViewType:APPLE_VIEW_TYPE_OPENGL_ES];
break;
#elif defined(HAVE_COCOA)
case GFX_CTX_OPENGL_API:

View File

@ -43,7 +43,9 @@ echo "${ITEMS}"
# Change the Internal Field Separator (IFS) so that spaces in paths will not cause problems below.
SAVED_IFS=$IFS
IFS=$(echo -en "\n\b")
# Doing IFS=$(echo -en "\n") does not work on Xcode 10 for some reason
IFS="
"
# Loop through all items.
for ITEM in $ITEMS;