X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=vid_sdl.c;h=3acdc478265534ab55c8aacfe588c7160c3bad39;hp=b366fd9b18baf70ff7ff427e3be6a8d6c3219cd3;hb=083d909f667012334c3b69c61cb04121356d1924;hpb=e1fdcb44208fd80b198530aa7423731f20d15bf9 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];