1
0
Fork 0
forked from fte/fteqw

Made gl renderer start properly in linux (gcc to be more specific)

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1094 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-06-15 04:45:26 +00:00
parent b8060f60b2
commit 2eae26e46e

View file

@ -2977,14 +2977,18 @@ void Host_Init (quakeparms_t *parms)
if ((i = COM_CheckParm ("-bpp"))) if ((i = COM_CheckParm ("-bpp")))
Cvar_Set(Cvar_FindVar("vid_bpp"), com_argv[i+1]); Cvar_Set(Cvar_FindVar("vid_bpp"), com_argv[i+1]);
if (qrenderer<=0 && *vid_renderer.string) //-1 means 'never set'
if (qrenderer == -1 && *vid_renderer.string)
{ {
Cmd_ExecuteString("vid_restart\n", RESTRICT_LOCAL); Cmd_ExecuteString("vid_restart\n", RESTRICT_LOCAL);
} }
if (qrenderer<=0) if (qrenderer == -1)
{ { //we still failed. Try again, but use the default renderer.
Cvar_Set(&vid_renderer, "");
Cmd_ExecuteString("vid_restart\n", RESTRICT_LOCAL); Cmd_ExecuteString("vid_restart\n", RESTRICT_LOCAL);
} }
if (qrenderer == -1)
Sys_Error("No renderer was set!\n");
if (qrenderer == QR_NONE) if (qrenderer == QR_NONE)
Con_Printf("Use the setrenderer command to use a gui\n"); Con_Printf("Use the setrenderer command to use a gui\n");