softgpu: Only check clear mode once for depthtest.

Small, small optimization.  It's only called outside clear mode.
This commit is contained in:
Unknown W. Brackets 2013-11-16 17:11:00 -08:00
parent 6ebad9e06f
commit 7a9fe955f8

View File

@ -353,9 +353,6 @@ static inline bool DepthTestPassed(int x, int y, u16 z)
{
u16 reference_z = GetPixelDepth(x, y);
if (gstate.isModeClear())
return true;
switch (gstate.getDepthTestFunction()) {
case GE_COMP_NEVER:
return false;