(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)
|
if (runloop->is_idle)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (g_view)
|
|
||||||
[g_view display];
|
|
||||||
CFRunLoopWakeUp(CFRunLoopGetMain());
|
CFRunLoopWakeUp(CFRunLoopGetMain());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -354,10 +351,13 @@ enum
|
||||||
- (IBAction)showPauseMenu:(id)sender
|
- (IBAction)showPauseMenu:(id)sender
|
||||||
{
|
{
|
||||||
runloop_t *runloop = rarch_main_get_ptr();
|
runloop_t *runloop = rarch_main_get_ptr();
|
||||||
|
|
||||||
runloop->is_paused = true;
|
if (runloop)
|
||||||
runloop->is_idle = true;
|
{
|
||||||
runloop->ui_companion_is_on_foreground = true;
|
runloop->is_paused = true;
|
||||||
|
runloop->is_idle = true;
|
||||||
|
runloop->ui_companion_is_on_foreground = true;
|
||||||
|
}
|
||||||
|
|
||||||
[[UIApplication sharedApplication] setStatusBarHidden:false withAnimation:UIStatusBarAnimationNone];
|
[[UIApplication sharedApplication] setStatusBarHidden:false withAnimation:UIStatusBarAnimationNone];
|
||||||
[[UIApplication sharedApplication] setIdleTimerDisabled:false];
|
[[UIApplication sharedApplication] setIdleTimerDisabled:false];
|
||||||
|
|
|
@ -427,13 +427,16 @@ static void apple_gfx_ctx_swap_buffers(void *data)
|
||||||
if (!(--g_fast_forward_skips < 0))
|
if (!(--g_fast_forward_skips < 0))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
#ifdef OSX
|
#if defined(OSX)
|
||||||
#ifdef HAVE_NSOPENGL
|
#ifdef HAVE_NSOPENGL
|
||||||
[g_context flushBuffer];
|
[g_context flushBuffer];
|
||||||
#else
|
#else
|
||||||
if (g_context.CGLContextObj)
|
if (g_context.CGLContextObj)
|
||||||
CGLFlushDrawable(g_context.CGLContextObj);
|
CGLFlushDrawable(g_context.CGLContextObj);
|
||||||
#endif
|
#endif
|
||||||
|
#elif defined(IOS)
|
||||||
|
if (g_view)
|
||||||
|
[g_view display];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
g_fast_forward_skips = g_is_syncing ? 0 : 3;
|
g_fast_forward_skips = g_is_syncing ? 0 : 3;
|
||||||
|
|
Loading…
Reference in New Issue