From 98a73e649fa829e2dc5b1933268389f7d1920b37 Mon Sep 17 00:00:00 2001 From: Twinaphex Date: Mon, 17 Nov 2014 18:07:08 +0100 Subject: [PATCH] (OSX) Add workaround for pre-OSX 10.6 - apple_gfx_ctx_swap_buffers --- apple/common/apple_gfx_context.c.inl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apple/common/apple_gfx_context.c.inl b/apple/common/apple_gfx_context.c.inl index b1ffe5ecc0..c500f2f204 100644 --- a/apple/common/apple_gfx_context.c.inl +++ b/apple/common/apple_gfx_context.c.inl @@ -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