mirror of
https://github.com/libretro/RetroArch
synced 2025-01-18 13:23:40 +00:00
(iOS) Move buffer swap to actual buffer swap function
This commit is contained in:
parent
efc78f0ee1
commit
946193446d
@ -55,9 +55,6 @@ static void rarch_draw(CFRunLoopObserverRef observer, CFRunLoopActivity activity
|
||||
|
||||
if (runloop->is_idle)
|
||||
return;
|
||||
|
||||
if (g_view)
|
||||
[g_view display];
|
||||
CFRunLoopWakeUp(CFRunLoopGetMain());
|
||||
}
|
||||
|
||||
@ -354,10 +351,13 @@ enum
|
||||
- (IBAction)showPauseMenu:(id)sender
|
||||
{
|
||||
runloop_t *runloop = rarch_main_get_ptr();
|
||||
|
||||
runloop->is_paused = true;
|
||||
runloop->is_idle = true;
|
||||
runloop->ui_companion_is_on_foreground = true;
|
||||
|
||||
if (runloop)
|
||||
{
|
||||
runloop->is_paused = true;
|
||||
runloop->is_idle = true;
|
||||
runloop->ui_companion_is_on_foreground = true;
|
||||
}
|
||||
|
||||
[[UIApplication sharedApplication] setStatusBarHidden:false withAnimation:UIStatusBarAnimationNone];
|
||||
[[UIApplication sharedApplication] setIdleTimerDisabled:false];
|
||||
|
@ -427,13 +427,16 @@ static void apple_gfx_ctx_swap_buffers(void *data)
|
||||
if (!(--g_fast_forward_skips < 0))
|
||||
return;
|
||||
|
||||
#ifdef OSX
|
||||
#if defined(OSX)
|
||||
#ifdef HAVE_NSOPENGL
|
||||
[g_context flushBuffer];
|
||||
#else
|
||||
if (g_context.CGLContextObj)
|
||||
CGLFlushDrawable(g_context.CGLContextObj);
|
||||
#endif
|
||||
#elif defined(IOS)
|
||||
if (g_view)
|
||||
[g_view display];
|
||||
#endif
|
||||
|
||||
g_fast_forward_skips = g_is_syncing ? 0 : 3;
|
||||
|
Loading…
Reference in New Issue
Block a user