diff options
author | bunnei <bunneidev@gmail.com> | 2020-04-19 21:33:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-19 21:33:33 +0200 |
commit | 2ea7a70da0d08b9a252e1a9ecbd5b214552751bc (patch) | |
tree | fb95faa0246d46a133125fed2e28d029a291762b | |
parent | Merge pull request #3696 from lioncash/cast-size (diff) | |
parent | texture_cache/format_lookup_table: Fix incorrect green, blue, and alpha indices (diff) | |
download | yuzu-2ea7a70da0d08b9a252e1a9ecbd5b214552751bc.tar yuzu-2ea7a70da0d08b9a252e1a9ecbd5b214552751bc.tar.gz yuzu-2ea7a70da0d08b9a252e1a9ecbd5b214552751bc.tar.bz2 yuzu-2ea7a70da0d08b9a252e1a9ecbd5b214552751bc.tar.lz yuzu-2ea7a70da0d08b9a252e1a9ecbd5b214552751bc.tar.xz yuzu-2ea7a70da0d08b9a252e1a9ecbd5b214552751bc.tar.zst yuzu-2ea7a70da0d08b9a252e1a9ecbd5b214552751bc.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/texture_cache/format_lookup_table.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/texture_cache/format_lookup_table.cpp b/src/video_core/texture_cache/format_lookup_table.cpp index e151c26c4..25d2ee2e8 100644 --- a/src/video_core/texture_cache/format_lookup_table.cpp +++ b/src/video_core/texture_cache/format_lookup_table.cpp @@ -196,9 +196,9 @@ std::size_t FormatLookupTable::CalculateIndex(TextureFormat format, bool is_srgb ComponentType alpha_component) noexcept { const auto format_index = static_cast<std::size_t>(format); const auto red_index = static_cast<std::size_t>(red_component); - const auto green_index = static_cast<std::size_t>(red_component); - const auto blue_index = static_cast<std::size_t>(red_component); - const auto alpha_index = static_cast<std::size_t>(red_component); + const auto green_index = static_cast<std::size_t>(green_component); + const auto blue_index = static_cast<std::size_t>(blue_component); + const auto alpha_index = static_cast<std::size_t>(alpha_component); const std::size_t srgb_index = is_srgb ? 1 : 0; return format_index * PerFormat + |