Mercurial > sdl-ios-xcode
comparison src/video/cocoa/SDL_cocoavideo.m @ 5090:455bc74f7034
Fixed bug #1100
Test the video features with #if instead of #ifdef
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 24 Jan 2011 17:38:18 -0800 |
parents | 7b1d35d98294 |
children | 7a963be087ef |
comparison
equal
deleted
inserted
replaced
5089:b4b0e9f1669c | 5090:455bc74f7034 |
---|---|
96 | 96 |
97 device->shape_driver.CreateShaper = Cocoa_CreateShaper; | 97 device->shape_driver.CreateShaper = Cocoa_CreateShaper; |
98 device->shape_driver.SetWindowShape = Cocoa_SetWindowShape; | 98 device->shape_driver.SetWindowShape = Cocoa_SetWindowShape; |
99 device->shape_driver.ResizeWindowShape = Cocoa_ResizeWindowShape; | 99 device->shape_driver.ResizeWindowShape = Cocoa_ResizeWindowShape; |
100 | 100 |
101 #ifdef SDL_VIDEO_OPENGL_CGL | 101 #if SDL_VIDEO_OPENGL_CGL |
102 device->GL_LoadLibrary = Cocoa_GL_LoadLibrary; | 102 device->GL_LoadLibrary = Cocoa_GL_LoadLibrary; |
103 device->GL_GetProcAddress = Cocoa_GL_GetProcAddress; | 103 device->GL_GetProcAddress = Cocoa_GL_GetProcAddress; |
104 device->GL_UnloadLibrary = Cocoa_GL_UnloadLibrary; | 104 device->GL_UnloadLibrary = Cocoa_GL_UnloadLibrary; |
105 device->GL_CreateContext = Cocoa_GL_CreateContext; | 105 device->GL_CreateContext = Cocoa_GL_CreateContext; |
106 device->GL_MakeCurrent = Cocoa_GL_MakeCurrent; | 106 device->GL_MakeCurrent = Cocoa_GL_MakeCurrent; |