mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-16 12:20:57 +00:00
softgpu: Only check clear mode once for depthtest.
Small, small optimization. It's only called outside clear mode.
This commit is contained in:
parent
6ebad9e06f
commit
7a9fe955f8
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user