summaryrefslogtreecommitdiff
path: root/src/core/hw/gpu.cpp
diff options
context:
space:
mode:
authorTony Wasserka <neobrainx@gmail.com>2015-03-09 23:12:30 +0100
committerTony Wasserka <neobrainx@gmail.com>2015-03-09 23:12:30 +0100
commite3a697b9f9db68f0d310fb4ab2003629ec6dc8f3 (patch)
tree31e4a7ad7a7dee8599923dc470bfcea4eb7ddc81 /src/core/hw/gpu.cpp
parent8a1cc5b8058686e9c73a363f22c48c4a3d10d4ec (diff)
parenta762f9c176d6298ec4056bcdb0cb2cd274e44bbf (diff)
Merge pull request #646 from Subv/24bit_fills
GPU: Corrected the 24 bit memory fills component order
Diffstat (limited to 'src/core/hw/gpu.cpp')
-rw-r--r--src/core/hw/gpu.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hw/gpu.cpp b/src/core/hw/gpu.cpp
index 424ce2ca7..b7102b874 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_b;
+ ptr[0] = config.value_24bit_r;
ptr[1] = config.value_24bit_g;
- ptr[2] = config.value_24bit_r;
+ ptr[2] = config.value_24bit_b;
}
} else if (config.fill_32bit) {
// fill with 32-bit values