diff options
| -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 | |||
| 196 | ComponentType alpha_component) noexcept { | 196 | ComponentType alpha_component) noexcept { |
| 197 | const auto format_index = static_cast<std::size_t>(format); | 197 | const auto format_index = static_cast<std::size_t>(format); |
| 198 | const auto red_index = static_cast<std::size_t>(red_component); | 198 | const auto red_index = static_cast<std::size_t>(red_component); |
| 199 | const auto green_index = static_cast<std::size_t>(red_component); | 199 | const auto green_index = static_cast<std::size_t>(green_component); |
| 200 | const auto blue_index = static_cast<std::size_t>(red_component); | 200 | const auto blue_index = static_cast<std::size_t>(blue_component); |
| 201 | const auto alpha_index = static_cast<std::size_t>(red_component); | 201 | const auto alpha_index = static_cast<std::size_t>(alpha_component); |
| 202 | const std::size_t srgb_index = is_srgb ? 1 : 0; | 202 | const std::size_t srgb_index = is_srgb ? 1 : 0; |
| 203 | 203 | ||
| 204 | return format_index * PerFormat + | 204 | return format_index * PerFormat + |