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:
Sam Lantinga 2006-08-06 04:39:13 +00:00
parent 461c8e2db4
commit a1ced0d971
7 changed files with 96 additions and 23 deletions

View file

@ -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];