Commit c8157c1d authored by Ryan C. Gordon's avatar Ryan C. Gordon

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

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401147
parent 7be238c6
...@@ -450,7 +450,7 @@ static void QZ_UnsetVideoMode (_THIS) { ...@@ -450,7 +450,7 @@ static void QZ_UnsetVideoMode (_THIS) {
gamma_error = QZ_FadeGammaOut (this, &gamma_table); gamma_error = QZ_FadeGammaOut (this, &gamma_table);
/* Release double buffer stuff */ /* Release double buffer stuff */
if ( mode_flags & (SDL_HWSURFACE|SDL_DOUBLEBUF)) { if ( mode_flags & SDL_DOUBLEBUF) {
quit_thread = YES; quit_thread = YES;
SDL_SemPost (sem1); SDL_SemPost (sem1);
SDL_WaitThread (thread, NULL); SDL_WaitThread (thread, NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment