From 762572a08ce17a83a5c5b2c2b968c92778f7221b Mon Sep 17 00:00:00 2001 From: Tony Wasserka Date: Mon, 21 Apr 2014 22:38:08 +0200 Subject: [PATCH] BPMemory: Fix GenMode using an incorrect number of bits for the number of color chans. --- Source/Core/VideoCommon/BPMemory.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Core/VideoCommon/BPMemory.h b/Source/Core/VideoCommon/BPMemory.h index 09f0efbaf7..a615f5d3a7 100644 --- a/Source/Core/VideoCommon/BPMemory.h +++ b/Source/Core/VideoCommon/BPMemory.h @@ -540,7 +540,9 @@ union GenMode }; BitField< 0,4,u32> numtexgens; - BitField< 4,5,u32> numcolchans; + BitField< 4,3,u32> numcolchans; + // 1 bit unused? + BitField< 8,1,u32> flat_shading; // unconfirmed BitField< 9,1,u32> multisampling; BitField<10,4,u32> numtevstages; BitField<14,2,CullMode> cullmode;