From: molivier Date: Wed, 7 Sep 2005 09:54:30 +0000 (+0000) Subject: Fixed the SDL video driver on Mac OS X (crash when restarting). Thanks to BigMac... X-Git-Tag: xonotic-v0.1.0preview~4586 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d7fd66581c5ea2bdb6c6f589fb02c0c40ee6974b;p=xonotic%2Fdarkplaces.git Fixed the SDL video driver on Mac OS X (crash when restarting). Thanks to BigMac for the patch git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5689 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/vid_sdl.c b/vid_sdl.c index 0474a26c..295d8bca 100644 --- a/vid_sdl.c +++ b/vid_sdl.c @@ -359,9 +359,7 @@ int VID_InitMode(int fullscreen, int width, int height, int bpp) We cant switch from one OpenGL video mode to another. Thus we first switch to some stupid 2D mode and then back to OpenGL. */ -#ifndef MACOSX SDL_SetVideoMode( 0, 0, 0, 0 ); -#endif // SDL usually knows best drivername = NULL;