(OSX) Add workaround for pre-OSX 10.6 - apple_gfx_ctx_swap_buffers

This commit is contained in:
Twinaphex 2014-11-17 18:07:08 +01:00
parent 9459749c79
commit 98a73e649f
1 changed files with 4 additions and 0 deletions

View File

@ -275,9 +275,13 @@ static void apple_gfx_ctx_swap_buffers(void *data)
return;
#ifdef OSX
#ifdef MAC_OS_X_VERSION_10_6
CGLContextObj context = (CGLContextObj)g_context.CGLContextObj;
if (context)
CGLFlushDrawable(context);
#else
[g_context flushBuffer];
#endif
#else
[g_view display];
#endif