summaryrefslogtreecommitdiff
path: root/src/core/hw/gpu.cpp
diff options
context:
space:
mode:
authorGravatar Subv2015-03-08 12:05:17 -0500
committerGravatar Subv2015-03-09 20:12:39 -0500
commit414b0741c445a7960f9ad1ee4a5672f8af4760db (patch)
tree5218b976cf8e15e745a9cf6037a7c133b7559fed /src/core/hw/gpu.cpp
parentGPU/Textures: Fixed ETC texture decoding. (diff)
downloadyuzu-414b0741c445a7960f9ad1ee4a5672f8af4760db.tar.gz
yuzu-414b0741c445a7960f9ad1ee4a5672f8af4760db.tar.xz
yuzu-414b0741c445a7960f9ad1ee4a5672f8af4760db.zip
GPU: Implemented more depth buffer formats.
This fixes the horizontal lines in Picross E, Cubic Ninja, Cave Story 3D and possibly others
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) {
81 if (config.fill_24bit) { 81 if (config.fill_24bit) {
82 // fill with 24-bit values 82 // fill with 24-bit values
83 for (u8* ptr = start; ptr < end; ptr += 3) { 83 for (u8* ptr = start; ptr < end; ptr += 3) {
84 ptr[0] = config.value_24bit_b; 84 ptr[0] = config.value_24bit_r;
85 ptr[1] = config.value_24bit_g; 85 ptr[1] = config.value_24bit_g;
86 ptr[2] = config.value_24bit_r; 86 ptr[2] = config.value_24bit_b;
87 } 87 }
88 } else if (config.fill_32bit) { 88 } else if (config.fill_32bit) {
89 // fill with 32-bit values 89 // fill with 32-bit values