diff options
-rw-r--r-- | src/sys/sys_win32.c | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/src/sys/sys_win32.c b/src/sys/sys_win32.c index abb38b78..034d1572 100644 --- a/src/sys/sys_win32.c +++ b/src/sys/sys_win32.c @@ -644,10 +644,6 @@ dialogResult_t Sys_Dialog( dialogType_t type, const char *message, const char *t } } -#ifndef DEDICATED -static qboolean SDL_VIDEODRIVER_externallySet = qfalse; -#endif - /* ============== Sys_GLimpSafeInit @@ -657,14 +653,6 @@ Windows specific "safe" GL implementation initialisation */ void Sys_GLimpSafeInit( void ) { -#ifndef DEDICATED - if( !SDL_VIDEODRIVER_externallySet ) - { - // Here, we want to let SDL decide what do to unless - // explicitly requested otherwise - _putenv( "SDL_VIDEODRIVER=" ); - } -#endif } /* @@ -676,25 +664,6 @@ Windows specific GL implementation initialisation */ void Sys_GLimpInit( void ) { -#ifndef DEDICATED - if( !SDL_VIDEODRIVER_externallySet ) - { - // It's a little bit weird having in_mouse control the - // video driver, but from ioq3's point of view they're - // virtually the same except for the mouse input anyway - if( Cvar_VariableIntegerValue( "in_mouse" ) == -1 ) - { - // Use the windib SDL backend, which is closest to - // the behaviour of idq3 with in_mouse set to -1 - _putenv( "SDL_VIDEODRIVER=windib" ); - } - else - { - // Use the DirectX SDL backend - _putenv( "SDL_VIDEODRIVER=directx" ); - } - } -#endif } /* @@ -708,21 +677,11 @@ void Sys_PlatformInit( void ) { #ifndef DEDICATED TIMECAPS ptc; - const char *SDL_VIDEODRIVER = getenv( "SDL_VIDEODRIVER" ); #endif Sys_SetFloatEnv(); #ifndef DEDICATED - if( SDL_VIDEODRIVER ) - { - Com_Printf( "SDL_VIDEODRIVER is externally set to \"%s\", " - "in_mouse -1 will have no effect\n", SDL_VIDEODRIVER ); - SDL_VIDEODRIVER_externallySet = qtrue; - } - else - SDL_VIDEODRIVER_externallySet = qfalse; - if(timeGetDevCaps(&ptc, sizeof(ptc)) == MMSYSERR_NOERROR) { timerResolution = ptc.wPeriodMin; |