From 7a9fe955f828d1c552e32a9ba109dcddf65bb25e Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 16 Nov 2013 17:11:00 -0800 Subject: [PATCH] softgpu: Only check clear mode once for depthtest. Small, small optimization. It's only called outside clear mode. --- GPU/Software/Rasterizer.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/GPU/Software/Rasterizer.cpp b/GPU/Software/Rasterizer.cpp index 314e983234..30dbb7e4a2 100644 --- a/GPU/Software/Rasterizer.cpp +++ b/GPU/Software/Rasterizer.cpp @@ -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;