Mercurial > sdl-ios-xcode
comparison src/video/SDL_video.c @ 266:c6abdda2f666
Added QNX cleanups by Mike Gorchak (thanks!)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 18 Jan 2002 18:14:03 +0000 |
parents | e8157fcb3114 |
children | c5010ab8ba35 |
comparison
equal
deleted
inserted
replaced
265:35d9c8a5aa10 | 266:c6abdda2f666 |
---|---|
1389 { | 1389 { |
1390 SDL_VideoDevice *video = current_video; | 1390 SDL_VideoDevice *video = current_video; |
1391 SDL_VideoDevice *this = current_video; | 1391 SDL_VideoDevice *this = current_video; |
1392 | 1392 |
1393 if ( video->screen->flags & SDL_OPENGL ) { | 1393 if ( video->screen->flags & SDL_OPENGL ) { |
1394 video->GL_SwapBuffers( this ); | 1394 video->GL_SwapBuffers(this); |
1395 } else { | |
1396 SDL_SetError("OpenGL video mode has not been set"); | |
1395 } | 1397 } |
1396 } | 1398 } |
1397 | 1399 |
1398 /* Update rects with locking */ | 1400 /* Update rects with locking */ |
1399 void SDL_GL_UpdateRectsLock(SDL_VideoDevice* this, int numrects, SDL_Rect *rects) | 1401 void SDL_GL_UpdateRectsLock(SDL_VideoDevice* this, int numrects, SDL_Rect *rects) |