- fixed typo in USDF spec.
- comment fixes taken from GZDoom. - division by zero check in R_SetVisibility from GZDoom.
This commit is contained in:
parent
eb3f243fc8
commit
099e365a23
5 changed files with 7 additions and 13 deletions
|
|
@ -263,7 +263,7 @@ void R_SetVisibility (float vis)
|
|||
|
||||
CurrentVisibility = vis;
|
||||
|
||||
if (FocalTangent == 0)
|
||||
if (FocalTangent == 0 || FocalLengthY == 0)
|
||||
{ // If r_visibility is called before the renderer is all set up, don't
|
||||
// divide by zero. This will be called again later, and the proper
|
||||
// values can be initialized then.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue