From 1248e291f0c9a29734b0f5175df8fa675cce930c Mon Sep 17 00:00:00 2001 From: Subv Date: Sun, 8 Mar 2015 21:31:15 -0500 Subject: GPU: Added the stencil test structure to the Pica Regs struct. --- src/core/hw/gpu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/hw/gpu.cpp') diff --git a/src/core/hw/gpu.cpp b/src/core/hw/gpu.cpp index b7102b874..424ce2ca7 100644 --- a/src/core/hw/gpu.cpp +++ b/src/core/hw/gpu.cpp @@ -81,9 +81,9 @@ inline void Write(u32 addr, const T data) { if (config.fill_24bit) { // fill with 24-bit values for (u8* ptr = start; ptr < end; ptr += 3) { - ptr[0] = config.value_24bit_r; + ptr[0] = config.value_24bit_b; ptr[1] = config.value_24bit_g; - ptr[2] = config.value_24bit_b; + ptr[2] = config.value_24bit_r; } } else if (config.fill_32bit) { // fill with 32-bit values -- cgit v1.2.3