(iOS) Move buffer swap to actual buffer swap function

This commit is contained in:
Twinaphex 2015-04-15 07:34:22 +02:00
parent efc78f0ee1
commit 946193446d
2 changed files with 11 additions and 8 deletions

View File

@ -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];

View File

@ -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;