diff src/video/cocoa/SDL_cocoaopengl.m @ 3688:6512cba48440

Fixed Cocoa and OpenGL builds
author Sam Lantinga <slouken@libsdl.org>
date Thu, 21 Jan 2010 07:28:01 +0000
parents 64ce267332c6
children 3d91e31fcf71
line wrap: on
line diff
--- a/src/video/cocoa/SDL_cocoaopengl.m	Thu Jan 21 07:22:11 2010 +0000
+++ b/src/video/cocoa/SDL_cocoaopengl.m	Thu Jan 21 07:28:01 2010 +0000
@@ -212,7 +212,7 @@
         if (window->flags & SDL_WINDOW_FULLSCREEN) {
             [nscontext setFullScreen];
         } else {
-            [nscontext setView:[windowdata->window contentView]];
+            [nscontext setView:[windowdata->nswindow contentView]];
             [nscontext update];
         }
         [nscontext makeCurrentContext];