mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-23 04:11:53 +00:00
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:
parent
b8060f60b2
commit
2eae26e46e
1 changed files with 69 additions and 65 deletions
|
@ -2977,14 +2977,18 @@ void Host_Init (quakeparms_t *parms)
|
|||
if ((i = COM_CheckParm ("-bpp")))
|
||||
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);
|
||||
}
|
||||
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);
|
||||
}
|
||||
if (qrenderer == -1)
|
||||
Sys_Error("No renderer was set!\n");
|
||||
|
||||
if (qrenderer == QR_NONE)
|
||||
Con_Printf("Use the setrenderer command to use a gui\n");
|
||||
|
|
Loading…
Reference in a new issue