Skip to content

Commit

Permalink
Date: Sun, 11 Sep 2005 14:41:07 +0300 (EEST)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
icculus committed Sep 27, 2005
1 parent 043b581 commit 6c3a0b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/quartz/SDL_QuartzVideo.m
Expand Up @@ -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);
Expand Down

0 comments on commit 6c3a0b5

Please sign in to comment.