mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-28 08:43:38 +01:00
Add !(gstate.zmsk & 1); to depthMask and remove duplicate GE_CMD_MATERIALUPDATE (exists in line69)
This commit is contained in:
1 parent
24ff143158
commit
24debfd259
2 files changed
+7
-7
No files matched your search
@@ -166,8 +166,8 @@ void TransformDrawEngine::ApplyDrawState(int prim) {
|
||||
if (gstate.isModeClear()) {
|
||||
bool colorMask = (gstate.clearmode >> 8) & 1;
|
||||
bool alphaMask = (gstate.clearmode >> 9) & 1;
|
||||
bool depthMask = (gstate.clearmode >> 10) & 1;
|
||||
|
||||
bool depthMask = ((gstate.clearmode >> 10) & 1) || !(gstate.zmsk & 1);
|
||||
|
||||
glstate.colorMask.set(colorMask, colorMask, colorMask, alphaMask);
|
||||
|
||||
glstate.stencilTest.enable();
|
||||
|
||||
Reference in new issue
Block a user