(OSX) Use CGLUpdateContext for OSX 10.7 and up

This commit is contained in:
Twinaphex 2014-10-24 07:46:17 +02:00
parent c496ee71d2
commit 3577b76895

View File

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