mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 06:44:27 +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)
|
static void apple_gfx_ctx_update(void)
|
||||||
{
|
{
|
||||||
#ifdef OSX
|
#ifdef OSX
|
||||||
if (g_context)
|
CGLContextObj context = (CGLContextObj)g_context.CGLContextObj;
|
||||||
[g_context update];
|
if (context)
|
||||||
|
CGLUpdateContext(context);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static void apple_gfx_ctx_flush_buffer(void)
|
static void apple_gfx_ctx_flush_buffer(void)
|
||||||
{
|
{
|
||||||
#ifdef OSX
|
#ifdef OSX
|
||||||
if (g_context)
|
CGLContextObj context = (CGLContextObj)g_context.CGLContextObj;
|
||||||
[g_context flushBuffer];
|
if (context)
|
||||||
|
CGLFlushDrawable(context);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user