Mercurial > sdl-ios-xcode
comparison 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 |
comparison
equal
deleted
inserted
replaced
3687:8e5186a99af4 | 3688:6512cba48440 |
---|---|
210 NSOpenGLContext *nscontext = (NSOpenGLContext *)context; | 210 NSOpenGLContext *nscontext = (NSOpenGLContext *)context; |
211 | 211 |
212 if (window->flags & SDL_WINDOW_FULLSCREEN) { | 212 if (window->flags & SDL_WINDOW_FULLSCREEN) { |
213 [nscontext setFullScreen]; | 213 [nscontext setFullScreen]; |
214 } else { | 214 } else { |
215 [nscontext setView:[windowdata->window contentView]]; | 215 [nscontext setView:[windowdata->nswindow contentView]]; |
216 [nscontext update]; | 216 [nscontext update]; |
217 } | 217 } |
218 [nscontext makeCurrentContext]; | 218 [nscontext makeCurrentContext]; |
219 } else { | 219 } else { |
220 [NSOpenGLContext clearCurrentContext]; | 220 [NSOpenGLContext clearCurrentContext]; |