mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-26 07:43:36 +01:00
softgpu: Only check clear mode once for depthtest.
Small, small optimization. It's only called outside clear mode.
This commit is contained in:
1 parent
6ebad9e06f
commit
7a9fe955f8
1 file changed
-3
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user