diff src/video/cocoa/SDL_cocoaopengl.m @ 1970:db3ba6c0d0df

Allow the render context to do necessary work when the video mode changes.
author Sam Lantinga <slouken@libsdl.org>
date Sun, 06 Aug 2006 04:39:13 +0000
parents 420716272158
children 81255f93dfcd
line wrap: on
line diff
--- a/src/video/cocoa/SDL_cocoaopengl.m	Sun Aug 06 00:09:04 2006 +0000
+++ b/src/video/cocoa/SDL_cocoaopengl.m	Sun Aug 06 04:39:13 2006 +0000
@@ -268,6 +268,7 @@
         NSOpenGLContext *nscontext = (NSOpenGLContext *)context;
 
         [nscontext setView:[windowdata->window contentView]];
+        [nscontext update];
         [nscontext makeCurrentContext];
     } else {
         [NSOpenGLContext clearCurrentContext];