mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
(Apple) Use CGLUpdateContext and CGLFlushDrawable directly
This commit is contained in:
parent
247707f8d3
commit
0704f80ba9
@ -72,16 +72,18 @@ static RAScreen* get_chosen_screen(void)
|
||||
static void apple_gfx_ctx_update(void)
|
||||
{
|
||||
#ifdef OSX
|
||||
if (g_context)
|
||||
[g_context update];
|
||||
CGLContextObj context = (CGLContextObj)g_context.CGLContextObj;
|
||||
if (context)
|
||||
CGLUpdateContext(context);
|
||||
#endif
|
||||
}
|
||||
|
||||
static void apple_gfx_ctx_flush_buffer(void)
|
||||
{
|
||||
#ifdef OSX
|
||||
if (g_context)
|
||||
[g_context flushBuffer];
|
||||
CGLContextObj context = (CGLContextObj)g_context.CGLContextObj;
|
||||
if (context)
|
||||
CGLFlushDrawable(context);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user