1
0
Fork 0
forked from fte/fteqw

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:
TimeServ 2005-10-22 20:05:19 +00:00
parent eb86804df3
commit 9134a6e097

View file

@ -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
}