Fix typo with ztex2 op in UseVertexDepthRange

This commit is contained in:
Pokechu22 2021-02-16 00:35:45 -08:00
parent 762fe33a3d
commit f2bea67709
1 changed files with 1 additions and 1 deletions

View File

@ -1697,7 +1697,7 @@ bool Renderer::UseVertexDepthRange() const
return false;
// We need a full depth range if a ztexture is used.
if (bpmem.ztex2.type != ZTEXTURE_DISABLE && !bpmem.zcontrol.early_ztest)
if (bpmem.ztex2.op != ZTEXTURE_DISABLE && !bpmem.zcontrol.early_ztest)
return true;
// If an inverted depth range is unsupported, we also need to check if the range is inverted.