Mercurial > sdl-ios-xcode
diff src/video/cocoa/SDL_cocoaopengl.m @ 3685:64ce267332c6
Switched from SDL_WindowID and SDL_TextureID to SDL_Window* and SDL_Texture* for code simplicity and improved performance.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 21 Jan 2010 06:21:52 +0000 |
parents | 19691cebb866 |
children | 6512cba48440 |
line wrap: on
line diff
--- a/src/video/cocoa/SDL_cocoaopengl.m Thu Jan 21 05:49:41 2010 +0000 +++ b/src/video/cocoa/SDL_cocoaopengl.m Thu Jan 21 06:21:52 2010 +0000 @@ -82,7 +82,7 @@ Cocoa_GL_CreateContext(_THIS, SDL_Window * window) { NSAutoreleasePool *pool; - SDL_VideoDisplay *display = SDL_GetDisplayFromWindow(window); + SDL_VideoDisplay *display = window->display; SDL_DisplayData *displaydata = (SDL_DisplayData *)display->driverdata; NSOpenGLPixelFormatAttribute attr[32]; NSOpenGLPixelFormat *fmt;