mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-25 16:41:04 +00:00
softgpu: Fix reversed stencil test funcs.
LESS applies to the ref compared to the stencil, not the stencil compared to the ref. With this, stencil testing is finally being done properly in Star Ocean.
This commit is contained in:
parent
2db98b8669
commit
1311d71455
@ -410,22 +410,22 @@ static inline bool StencilTestPassed(u8 stencil)
|
||||
return true;
|
||||
|
||||
case GE_COMP_EQUAL:
|
||||
return (stencil == ref);
|
||||
return ref == stencil;
|
||||
|
||||
case GE_COMP_NOTEQUAL:
|
||||
return (stencil != ref);
|
||||
return ref != stencil;
|
||||
|
||||
case GE_COMP_LESS:
|
||||
return (stencil < ref);
|
||||
return ref < stencil;
|
||||
|
||||
case GE_COMP_LEQUAL:
|
||||
return (stencil <= ref);
|
||||
return ref <= stencil;
|
||||
|
||||
case GE_COMP_GREATER:
|
||||
return (stencil > ref);
|
||||
return ref > stencil;
|
||||
|
||||
case GE_COMP_GEQUAL:
|
||||
return (stencil >= ref);
|
||||
return ref >= stencil;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user