mirror of
https://github.com/yawut/SDL.git
synced 2026-09-30 12:16:43 -05:00
Date: Sun, 11 Sep 2005 14:41:07 +0300 (EEST)
From: =?ISO-8859-1?Q?Martin_Storsj=F6?= <martin@martin.st> To: sdl@libsdl.org Subject: [SDL] [PATCH] Switching between fullscreen/windowed on OS X Hi, When switching from fullscreen to windowed mode for opengl applications, the current version of SDL sets an harmless error, regarding usage of a NULL semaphore. This is due to code which tries to shut down a blitting thread, which is only started for double buffered 2d video modes, not for opengl. The attached patch fixes this. // Martin
This commit is contained in:
@@ -450,7 +450,7 @@ static void QZ_UnsetVideoMode (_THIS) {
|
||||
gamma_error = QZ_FadeGammaOut (this, &gamma_table);
|
||||
|
||||
/* Release double buffer stuff */
|
||||
if ( mode_flags & (SDL_HWSURFACE|SDL_DOUBLEBUF)) {
|
||||
if ( mode_flags & SDL_DOUBLEBUF) {
|
||||
quit_thread = YES;
|
||||
SDL_SemPost (sem1);
|
||||
SDL_WaitThread (thread, NULL);
|
||||
|
||||
Reference in New Issue
Block a user