avoid textureless sky rendering
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1533 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
eb86804df3
commit
9134a6e097
1 changed files with 6 additions and 0 deletions
|
@ -144,6 +144,12 @@ void R_LoadSkyBox (void)
|
|||
sprintf (pathname, "env/%s%s.pcx", skyname, suf[r_skysideimage[i]]);
|
||||
r_skytexinfo[i].texture = Mod_LoadWall (pathname); //q2 fall back
|
||||
}
|
||||
if (!r_skytexinfo[i].texture)
|
||||
{
|
||||
// break out and erase skyname so renderer won't render it
|
||||
skyname[0] = '\0';
|
||||
return;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue