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 committed 2013-11-17 19:32:21 -08:00
1 parent 6ebad9e06f
commit 7a9fe955f8
1 file changed
-3
-3
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;