fix to failed renderer restart logic
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2171 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
bcb4f10991
commit
3d0489e736
1 changed files with 11 additions and 3 deletions
|
@ -1931,10 +1931,18 @@ TRACE(("dbg: R_RestartRenderer_f\n"));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Con_Printf(S_NOTICE "Trying default refresh rate\n");
|
qboolean failed = true;
|
||||||
newr.rate = 0;
|
|
||||||
if (!R_ApplyRenderer(&oldr))
|
if (newr.rate != 0)
|
||||||
{
|
{
|
||||||
|
Con_Printf(S_NOTICE "Trying default refresh rate\n");
|
||||||
|
newr.rate = 0;
|
||||||
|
failed = !R_ApplyRenderer(&newr);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (failed)
|
||||||
|
{
|
||||||
|
newr.renderer = QR_NONE;
|
||||||
if (R_ApplyRenderer(&newr))
|
if (R_ApplyRenderer(&newr))
|
||||||
{
|
{
|
||||||
TRACE(("dbg: R_RestartRenderer_f going to dedicated\n"));
|
TRACE(("dbg: R_RestartRenderer_f going to dedicated\n"));
|
||||||
|
|
Loading…
Reference in a new issue