From 515b6ee81240c720ad3fc10940d8f0c6e874fd9c Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Mon, 17 Mar 2014 12:04:59 -0500 Subject: Fix multisampling on X11 Setting SDL_GL_ACCELERATED_VISUAL was disabled for ioq3 SDL 1.2 for other reasons. However, it causes creating GL context to fail if multisampling is enabled on X11 for both SDL1.2 and SDL2. Tested using nVidia proprietary driver on Debian 7. --- src/sdl/sdl_glimp.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/sdl') diff --git a/src/sdl/sdl_glimp.c b/src/sdl/sdl_glimp.c index 6c313cda..3b619b1b 100644 --- a/src/sdl/sdl_glimp.c +++ b/src/sdl/sdl_glimp.c @@ -422,9 +422,11 @@ static int GLimp_SetMode( qboolean failSafe, qboolean fullscreen, qboolean nobor SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 ); +#if 0 // if multisampling is enabled on X11, this causes create window to fail. // If not allowing software GL, demand accelerated if( !r_allowSoftwareGL->integer ) SDL_GL_SetAttribute( SDL_GL_ACCELERATED_VISUAL, 1 ); +#endif if( ( SDL_window = SDL_CreateWindow( CLIENT_WINDOW_TITLE, x, y, glConfig.vidWidth, glConfig.vidHeight, flags ) ) == 0 ) -- cgit