Allow the render context to do necessary work when the video mode changes.
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402017
This commit is contained in:
parent
461c8e2db4
commit
a1ced0d971
7 changed files with 96 additions and 23 deletions
|
@ -268,6 +268,7 @@ Cocoa_GL_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context)
|
|||
NSOpenGLContext *nscontext = (NSOpenGLContext *)context;
|
||||
|
||||
[nscontext setView:[windowdata->window contentView]];
|
||||
[nscontext update];
|
||||
[nscontext makeCurrentContext];
|
||||
} else {
|
||||
[NSOpenGLContext clearCurrentContext];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue