mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 13:14:04 +00:00
(OSX) Use CGLUpdateContext for OSX 10.7 and up
This commit is contained in:
parent
c496ee71d2
commit
3577b76895
@ -73,8 +73,14 @@ static RAScreen* get_chosen_screen(void)
|
||||
static void apple_gfx_ctx_update(void)
|
||||
{
|
||||
#ifdef OSX
|
||||
#ifdef MAC_OS_X_VERSION_10_7
|
||||
CGLContextObj context = (CGLContextObj)g_context.CGLContextObj;
|
||||
if (context)
|
||||
CGLUpdateContext(context);
|
||||
#else
|
||||
[g_context update];
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
static void apple_gfx_ctx_flush_buffer(void)
|
||||
|
Loading…
x
Reference in New Issue
Block a user