From 3577b76895269836fe3ee573eaf2dd494353f9bf Mon Sep 17 00:00:00 2001 From: Twinaphex Date: Fri, 24 Oct 2014 07:46:17 +0200 Subject: [PATCH] (OSX) Use CGLUpdateContext for OSX 10.7 and up --- apple/common/apple_gfx_context.c.inl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apple/common/apple_gfx_context.c.inl b/apple/common/apple_gfx_context.c.inl index 553aadb363..a0fc5928f2 100644 --- a/apple/common/apple_gfx_context.c.inl +++ b/apple/common/apple_gfx_context.c.inl @@ -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)