From 083d909f667012334c3b69c61cb04121356d1924 Mon Sep 17 00:00:00 2001 From: havoc Date: Thu, 25 Nov 2004 17:36:24 +0000 Subject: [PATCH] changed drivername to NULL, as SDL knows best git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4793 d7cf8633-e32d-0410-b094-e92efae38249 --- vid_sdl.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/vid_sdl.c b/vid_sdl.c index b366fd9b..3acdc478 100644 --- a/vid_sdl.c +++ b/vid_sdl.c @@ -380,15 +380,10 @@ int VID_InitMode(int fullscreen, int width, int height, int bpp) */ SDL_SetVideoMode( 0, 0, 0, 0 ); -#ifdef WIN32 - drivername = "opengl32.dll"; -#elif defined(__APPLE__) && defined(__MACH__) - drivername = "OpenGL.framework"; -#else - drivername = "libGL.so.1"; -#endif + // SDL usually knows best + drivername = NULL; -// COMMANDLINEOPTION: SDL GL: -gl_driver selects a GL driver library, default is libGL.so.1 (Linux/BSD) or opengl32.dll (windows) or OpenGL.framework (MacOSX), useful only for 3dfxogl.dll/3dfxvgl.dll or fxmesa or similar, if you don't know what this is for, you don't need it +// COMMANDLINEOPTION: SDL GL: -gl_driver selects a GL driver library, default is whatever SDL recommends, useful only for 3dfxogl.dll/3dfxvgl.dll or fxmesa or similar, if you don't know what this is for, you don't need it i = COM_CheckParm("-gl_driver"); if (i && i < com_argc - 1) drivername = com_argv[i + 1]; -- 2.39.2