Fix default video mode.

Revert "The default video mode is 5 (640x480). Spotted by svdijk."
This reverts commit a76d7d5cfb.
This commit is contained in:
svdijk 2013-05-28 20:42:57 +02:00
parent 444e20ba12
commit 55d6a601c9
3 changed files with 5 additions and 5 deletions

View File

@ -241,16 +241,16 @@ GLimp_InitGraphics(qboolean fullscreen)
{
if (counter == 1)
{
ri.Sys_Error(ERR_FATAL, "Failed to revert to gl_mode 5. Exiting...\n");
ri.Sys_Error(ERR_FATAL, "Failed to revert to gl_mode 4. Exiting...\n");
return false;
}
ri.Con_Printf(PRINT_ALL, "SDL SetVideoMode failed: %s\n",
SDL_GetError());
ri.Con_Printf(PRINT_ALL, "Reverting to gl_mode 5 (640x480) and windowed mode.\n");
ri.Con_Printf(PRINT_ALL, "Reverting to gl_mode 4 (640x480) and windowed mode.\n");
/* Try to recover */
ri.Cvar_SetValue("gl_mode", 5);
ri.Cvar_SetValue("gl_mode", 4);
ri.Cvar_SetValue("vid_fullscreen", 0);
vid.width = 640;
vid.height = 480;

View File

@ -230,7 +230,7 @@ VID_MenuInit(void)
if (!gl_mode)
{
gl_mode = Cvar_Get("gl_mode", "5", 0);
gl_mode = Cvar_Get("gl_mode", "4", 0);
}
if (!gl_ext_palettedtexture)

View File

@ -994,7 +994,7 @@ R_Register(void)
gl_modulate = ri.Cvar_Get("gl_modulate", "1", CVAR_ARCHIVE);
gl_log = ri.Cvar_Get("gl_log", "0", 0);
gl_bitdepth = ri.Cvar_Get("gl_bitdepth", "0", 0);
gl_mode = ri.Cvar_Get("gl_mode", "5", CVAR_ARCHIVE);
gl_mode = ri.Cvar_Get("gl_mode", "4", CVAR_ARCHIVE);
gl_lightmap = ri.Cvar_Get("gl_lightmap", "0", 0);
gl_shadows = ri.Cvar_Get("gl_shadows", "0", CVAR_ARCHIVE);
gl_stencilshadow = ri.Cvar_Get("gl_stencilshadow", "0", CVAR_ARCHIVE);