Add !(gstate.zmsk & 1); to depthMask and remove duplicate GE_CMD_MATERIALUPDATE (exists in line69)

This commit is contained in:
raven02 committed 2013-02-24 17:50:05 +08:00
1 parent 24ff143158
commit 24debfd259
2 files changed
+7 -7

No files matched your search

+2 -2
View File
@@ -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();