From 426f18764212a03bdf1a2261e5e8720bd50c0b36 Mon Sep 17 00:00:00 2001 From: NeoBrainX Date: Sun, 3 Apr 2011 18:08:04 +0000 Subject: [PATCH] VideoCommon: Update color writing mask if pixel format changes. Possibly fixes issue 4340. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7436 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/VideoCommon/Src/BPStructs.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Core/VideoCommon/Src/BPStructs.cpp b/Source/Core/VideoCommon/Src/BPStructs.cpp index b83104b522..bd9e9ac5f7 100644 --- a/Source/Core/VideoCommon/Src/BPStructs.cpp +++ b/Source/Core/VideoCommon/Src/BPStructs.cpp @@ -429,6 +429,7 @@ void BPWritten(const BPCmd& bp) break; case BPMEM_ZCOMPARE: // Set the Z-Compare and EFB pixel format + g_renderer->SetColorMask(); // alpha writing needs to be disabled if the new pixel format doesn't have an alpha channel OnPixelFormatChange(bp); break;