summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-04-16 05:49:14 +0200
committerLioncash <mathew1800@gmail.com>2020-04-16 05:50:46 +0200
commit636c8ab85b55b8ce510ef5a251fe66142d667e46 (patch)
treee5ebc1a3d7a3476548ec2c037efec066508d3e7d /src
parentMerge pull request #3612 from ReinUsesLisp/red (diff)
downloadyuzu-636c8ab85b55b8ce510ef5a251fe66142d667e46.tar
yuzu-636c8ab85b55b8ce510ef5a251fe66142d667e46.tar.gz
yuzu-636c8ab85b55b8ce510ef5a251fe66142d667e46.tar.bz2
yuzu-636c8ab85b55b8ce510ef5a251fe66142d667e46.tar.lz
yuzu-636c8ab85b55b8ce510ef5a251fe66142d667e46.tar.xz
yuzu-636c8ab85b55b8ce510ef5a251fe66142d667e46.tar.zst
yuzu-636c8ab85b55b8ce510ef5a251fe66142d667e46.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/texture_cache/format_lookup_table.cpp6
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 +