* Fix warning in cl_main.c

* Fix bug #4026 (SDL dx backend doesn't work on some machines)
This commit is contained in:
Tim Angus 2009-09-14 12:34:31 +00:00
parent 2bd4c89203
commit 64a0a078d2
5 changed files with 53 additions and 17 deletions

View file

@ -581,6 +581,25 @@ void Sys_ErrorDialog( const char *error )
static qboolean SDL_VIDEODRIVER_externallySet = qfalse;
#endif
/*
==============
Sys_GLimpSafeInit
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
}
/*
==============
Sys_GLimpInit