diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-02-24 01:22:54 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-02-27 00:08:27 +0100 |
commit | 0ccd490fcda4f3d1cff3a9ee092dd3ee22ef1c1f (patch) | |
tree | af095aa4a2376398bdb390729373ddf1b50ea39a /src/video_core/textures/decoders.cpp | |
parent | Merge pull request #2156 from FreddyFunk/patch-1 (diff) | |
download | yuzu-0ccd490fcda4f3d1cff3a9ee092dd3ee22ef1c1f.tar yuzu-0ccd490fcda4f3d1cff3a9ee092dd3ee22ef1c1f.tar.gz yuzu-0ccd490fcda4f3d1cff3a9ee092dd3ee22ef1c1f.tar.bz2 yuzu-0ccd490fcda4f3d1cff3a9ee092dd3ee22ef1c1f.tar.lz yuzu-0ccd490fcda4f3d1cff3a9ee092dd3ee22ef1c1f.tar.xz yuzu-0ccd490fcda4f3d1cff3a9ee092dd3ee22ef1c1f.tar.zst yuzu-0ccd490fcda4f3d1cff3a9ee092dd3ee22ef1c1f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/textures/decoders.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/textures/decoders.cpp b/src/video_core/textures/decoders.cpp index 5db75de22..150612aed 100644 --- a/src/video_core/textures/decoders.cpp +++ b/src/video_core/textures/decoders.cpp @@ -103,8 +103,8 @@ void FastProcessBlock(u8* const swizzled_data, u8* const unswizzled_data, const const u32 swizzle_offset{y_address + table[(xb / fast_swizzle_align) % 4]}; const u32 out_x = xb * out_bytes_per_pixel / bytes_per_pixel; const u32 pixel_index{out_x + pixel_base}; - data_ptrs[unswizzle] = swizzled_data + swizzle_offset; - data_ptrs[!unswizzle] = unswizzled_data + pixel_index; + data_ptrs[unswizzle ? 1 : 0] = swizzled_data + swizzle_offset; + data_ptrs[unswizzle ? 0 : 1] = unswizzled_data + pixel_index; std::memcpy(data_ptrs[0], data_ptrs[1], fast_swizzle_align); } pixel_base += stride_x; |