mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-22 11:52:04 +00:00
Den Softrenderer nicht mehr beachten
This commit is contained in:
parent
112cb48660
commit
08d6d32591
1 changed files with 3 additions and 25 deletions
|
@ -350,7 +350,6 @@ update the rendering DLL and/or video mode to match.
|
||||||
void VID_CheckChanges (void)
|
void VID_CheckChanges (void)
|
||||||
{
|
{
|
||||||
char name[100];
|
char name[100];
|
||||||
cvar_t *sw_mode;
|
|
||||||
|
|
||||||
if ( vid_ref->modified )
|
if ( vid_ref->modified )
|
||||||
{
|
{
|
||||||
|
@ -370,32 +369,11 @@ void VID_CheckChanges (void)
|
||||||
sprintf( name, "ref_%s.so", vid_ref->string );
|
sprintf( name, "ref_%s.so", vid_ref->string );
|
||||||
if ( !VID_LoadRefresh( name ) )
|
if ( !VID_LoadRefresh( name ) )
|
||||||
{
|
{
|
||||||
if ( strcmp (vid_ref->string, "soft") == 0 ||
|
|
||||||
strcmp (vid_ref->string, "softx") == 0 ) {
|
|
||||||
Com_Printf("Refresh failed\n");
|
|
||||||
sw_mode = Cvar_Get( "sw_mode", "0", 0 );
|
|
||||||
if (sw_mode->value != 0) {
|
|
||||||
Com_Printf("Trying mode 0\n");
|
|
||||||
Cvar_SetValue("sw_mode", 0);
|
|
||||||
if ( !VID_LoadRefresh( name ) )
|
|
||||||
Com_Error (ERR_FATAL, "Couldn't fall back to software refresh!");
|
|
||||||
} else
|
|
||||||
Com_Error (ERR_FATAL, "Couldn't fall back to software refresh!");
|
|
||||||
}
|
|
||||||
|
|
||||||
/* prefer to fall back on X if active */
|
/* prefer to fall back on X if active */
|
||||||
if (getenv("DISPLAY"))
|
if (getenv("DISPLAY"))
|
||||||
Cvar_Set( "vid_ref", "softx" );
|
Cvar_Set( "vid_ref", "gl" );
|
||||||
else
|
else
|
||||||
Cvar_Set( "vid_ref", "soft" );
|
Cvar_Set( "vid_ref", "gl" );
|
||||||
|
|
||||||
/*
|
|
||||||
** drop the console if we fail to load a refresh
|
|
||||||
*/
|
|
||||||
if ( cls.key_dest != key_console )
|
|
||||||
{
|
|
||||||
Con_ToggleConsole_f();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
cls.disable_screen = false;
|
cls.disable_screen = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue