Don't set the same GL context twice on Mac OS X (thanks, Alex!).
Fixes Bugzilla #1939.
This commit is contained in:
parent
32e16f45fa
commit
65a277c322
1 changed files with 1 additions and 1 deletions
|
@ -223,7 +223,7 @@ Cocoa_GL_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context)
|
||||||
[nscontext setFullScreen];
|
[nscontext setFullScreen];
|
||||||
} else
|
} else
|
||||||
#endif
|
#endif
|
||||||
{
|
if ([nscontext view] != [windowdata->nswindow contentView]) {
|
||||||
[nscontext setView:[windowdata->nswindow contentView]];
|
[nscontext setView:[windowdata->nswindow contentView]];
|
||||||
[nscontext update];
|
[nscontext update];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue