summaryrefslogtreecommitdiff
path: root/src/video_core/debug_utils
diff options
context:
space:
mode:
authorGravatar Tony Wasserka2014-12-28 23:33:59 +0100
committerGravatar Tony Wasserka2014-12-31 16:32:55 +0100
commit3da52ead9badab44257fce6e606873f6abc7dc6f (patch)
tree0b6404e0b163271edecc388a777d6671b8b269ed /src/video_core/debug_utils
parentPica/Rasterizer: Implement alpha blending. (diff)
downloadyuzu-3da52ead9badab44257fce6e606873f6abc7dc6f.tar.gz
yuzu-3da52ead9badab44257fce6e606873f6abc7dc6f.tar.xz
yuzu-3da52ead9badab44257fce6e606873f6abc7dc6f.zip
Pica/DebugUtils: Fix a bug in RGBA4 texture decoding.
Diffstat (limited to 'src/video_core/debug_utils')
-rw-r--r--src/video_core/debug_utils/debug_utils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/debug_utils/debug_utils.cpp b/src/video_core/debug_utils/debug_utils.cpp
index 9c0fbc453..83d585d16 100644
--- a/src/video_core/debug_utils/debug_utils.cpp
+++ b/src/video_core/debug_utils/debug_utils.cpp
@@ -375,9 +375,9 @@ const Math::Vec4<u8> LookupTexture(const u8* source, int x, int y, const Texture
375 { 375 {
376 const u8* source_ptr = source + offset * 2; 376 const u8* source_ptr = source + offset * 2;
377 u8 r = source_ptr[1] >> 4; 377 u8 r = source_ptr[1] >> 4;
378 u8 g = source_ptr[1] & 0xFF; 378 u8 g = source_ptr[1] & 0xF;
379 u8 b = source_ptr[0] >> 4; 379 u8 b = source_ptr[0] >> 4;
380 u8 a = source_ptr[0] & 0xFF; 380 u8 a = source_ptr[0] & 0xF;
381 r = (r << 4) | r; 381 r = (r << 4) | r;
382 g = (g << 4) | g; 382 g = (g << 4) | g;
383 b = (b << 4) | b; 383 b = (b << 4) | b;