diff options
| author | bunnei <bunneidev@gmail.com> | 2020-04-19 15:33:33 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-19 15:33:33 -0400 |
| commit | 67cb130051e4fc693f6bcbf76ad744eefe869412 (patch) | |
| tree | fb95faa0246d46a133125fed2e28d029a291762b /src/video_core/texture_cache | |
| parent | 2aacd00137a434b28b5529f3386a6597090656ce (diff) | |
| parent | 61329ad0bee4396816d53cc8045394df3aaf0d98 (diff) | |
Merge pull request #3686 from lioncash/table
texture_cache/format_lookup_table: Fix incorrect green, blue, and alpha indices
Diffstat (limited to 'src/video_core/texture_cache')
| -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 e151c26c48..25d2ee2e85 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 + |
