diff options
author | bunnei <bunneidev@gmail.com> | 2018-11-27 05:22:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-27 05:22:59 +0100 |
commit | 1cd40f107f2681bf3df84aa148feb20a179d6c23 (patch) | |
tree | ccf9d2ff40734309cdb61ded841709216007b22d | |
parent | Merge pull request #1804 from lioncash/cast (diff) | |
parent | morton: Fixup compiler warning (diff) | |
download | yuzu-1cd40f107f2681bf3df84aa148feb20a179d6c23.tar yuzu-1cd40f107f2681bf3df84aa148feb20a179d6c23.tar.gz yuzu-1cd40f107f2681bf3df84aa148feb20a179d6c23.tar.bz2 yuzu-1cd40f107f2681bf3df84aa148feb20a179d6c23.tar.lz yuzu-1cd40f107f2681bf3df84aa148feb20a179d6c23.tar.xz yuzu-1cd40f107f2681bf3df84aa148feb20a179d6c23.tar.zst yuzu-1cd40f107f2681bf3df84aa148feb20a179d6c23.zip |
-rw-r--r-- | src/video_core/morton.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/morton.cpp b/src/video_core/morton.cpp index f14abba7d..8c3b97463 100644 --- a/src/video_core/morton.cpp +++ b/src/video_core/morton.cpp @@ -183,13 +183,14 @@ static constexpr ConversionArray linear_to_morton_fns = { // clang-format on }; -constexpr MortonCopyFn GetSwizzleFunction(MortonSwizzleMode mode, Surface::PixelFormat format) { +static MortonCopyFn GetSwizzleFunction(MortonSwizzleMode mode, Surface::PixelFormat format) { switch (mode) { case MortonSwizzleMode::MortonToLinear: return morton_to_linear_fns[static_cast<std::size_t>(format)]; case MortonSwizzleMode::LinearToMorton: return linear_to_morton_fns[static_cast<std::size_t>(format)]; } + UNREACHABLE(); } /// 8x8 Z-Order coordinate from 2D coordinates |