Mercurial > sdl-ios-xcode
comparison src/SDL_compat.c @ 1913:83420da906a5
Implemented Windows OpenGL support
Fixed slowdown enumerating display modes, which was hosing OpenGL as well...
Removed SDL_ from the render driver prefixes
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 17 Jul 2006 06:47:33 +0000 |
parents | 8d384b647307 |
children | 69217fdd2c0a |
comparison
equal
deleted
inserted
replaced
1912:8d384b647307 | 1913:83420da906a5 |
---|---|
335 SDL_VideoPaletteChanged, NULL); | 335 SDL_VideoPaletteChanged, NULL); |
336 SDL_FreeSurface(SDL_VideoSurface); | 336 SDL_FreeSurface(SDL_VideoSurface); |
337 SDL_VideoSurface = NULL; | 337 SDL_VideoSurface = NULL; |
338 } | 338 } |
339 if (SDL_VideoContext) { | 339 if (SDL_VideoContext) { |
340 SDL_GL_MakeCurrent(0, SDL_VideoContext); | 340 SDL_GL_MakeCurrent(0, NULL); |
341 SDL_GL_DeleteContext(SDL_VideoContext); | 341 SDL_GL_DeleteContext(SDL_VideoContext); |
342 SDL_VideoContext = NULL; | 342 SDL_VideoContext = NULL; |
343 } | 343 } |
344 if (SDL_VideoWindow) { | 344 if (SDL_VideoWindow) { |
345 SDL_GetWindowPosition(SDL_VideoWindow, &window_x, &window_y); | 345 SDL_GetWindowPosition(SDL_VideoWindow, &window_x, &window_y); |