From 0e25f6a83fb45ea0cf5012881ff099c870904e95 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 24 Jan 2021 16:07:13 -0800 Subject: [PATCH] D3D9: Don't allow separate alpha clears. Doesn't seem like the color mask applies to clears. --- GPU/Directx9/DrawEngineDX9.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/GPU/Directx9/DrawEngineDX9.cpp b/GPU/Directx9/DrawEngineDX9.cpp index 0f7603e8de..338701689a 100644 --- a/GPU/Directx9/DrawEngineDX9.cpp +++ b/GPU/Directx9/DrawEngineDX9.cpp @@ -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)) {