Don't set the same GL context twice on Mac OS X (thanks, Alex!).

Fixes Bugzilla #1939.
This commit is contained in:
Ryan C. Gordon 2013-07-05 01:18:18 -04:00
parent 32e16f45fa
commit 65a277c322

View file

@ -223,7 +223,7 @@ Cocoa_GL_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context)
[nscontext setFullScreen];
} else
#endif
{
if ([nscontext view] != [windowdata->nswindow contentView]) {
[nscontext setView:[windowdata->nswindow contentView]];
[nscontext update];
}