D3D9: Don't allow separate alpha clears.

Doesn't seem like the color mask applies to clears.
This commit is contained in:
Unknown W. Brackets committed 2021-01-24 16:07:13 -08:00
1 parent 9857e8d1b1
commit 0e25f6a83f
1 file changed
+1 -2
+1 -2
View File
@@ -553,7 +553,7 @@ rotateVBO:
params.fbman = framebufferManager_;
params.texCache = textureCache_;
params.allowClear = true;
params.allowSeparateAlphaClear = true;
params.allowSeparateAlphaClear = false;
params.provokeFlatFirst = true;
int maxIndex = indexGen.MaxIndex();
@@ -602,7 +602,6 @@ rotateVBO:
framebufferManager_->SetColorUpdated(gstate_c.skipDrawReason);
}
dxstate.colorMask.set((mask & D3DCLEAR_TARGET) != 0, (mask & D3DCLEAR_TARGET) != 0, (mask & D3DCLEAR_TARGET) != 0, (mask & D3DCLEAR_STENCIL) != 0);
device_->Clear(0, NULL, mask, SwapRB(clearColor), clearDepth, clearColor >> 24);
if ((gstate_c.featureFlags & GPU_USE_CLEAR_RAM_HACK) && gstate.isClearModeColorMask() && (gstate.isClearModeAlphaMask() || gstate.FrameBufFormat() == GE_FORMAT_565)) {