(Apple) Use CGLUpdateContext and CGLFlushDrawable directly

This commit is contained in:
Twinaphex 2014-10-19 00:14:51 +02:00
parent 247707f8d3
commit 0704f80ba9

View File

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