From 5b750fd48c7a2f0cb8c917fb78ccca584694c529 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 5 Jul 2013 01:18:18 -0400 Subject: [PATCH] Don't set the same GL context twice on Mac OS X (thanks, Alex!). Fixes Bugzilla #1939. --- src/video/cocoa/SDL_cocoaopengl.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/cocoa/SDL_cocoaopengl.m b/src/video/cocoa/SDL_cocoaopengl.m index f52e3e91e..589fb1dd7 100644 --- a/src/video/cocoa/SDL_cocoaopengl.m +++ b/src/video/cocoa/SDL_cocoaopengl.m @@ -223,7 +223,7 @@ [nscontext setFullScreen]; } else #endif - { + if ([nscontext view] != [windowdata->nswindow contentView]) { [nscontext setView:[windowdata->nswindow contentView]]; [nscontext update]; }