diff options
| author | 2018-12-21 14:12:54 -0500 | |
|---|---|---|
| committer | 2018-12-21 14:12:54 -0500 | |
| commit | e75e8b9580581d1258154d51ac03893386a500e5 (patch) | |
| tree | 625619fea43e1340d39132f660a476c291974860 /src/video_core/morton.cpp | |
| parent | Merge pull request #1920 from heapo/texture_format_selection (diff) | |
| parent | hopefully fix clang format issue (diff) | |
| download | yuzu-e75e8b9580581d1258154d51ac03893386a500e5.tar.gz yuzu-e75e8b9580581d1258154d51ac03893386a500e5.tar.xz yuzu-e75e8b9580581d1258154d51ac03893386a500e5.zip | |
Merge pull request #1921 from ogniK5377/no-unit
Fixed uninitialized memory due to missing returns in canary
Diffstat (limited to 'src/video_core/morton.cpp')
| -rw-r--r-- | src/video_core/morton.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/video_core/morton.cpp b/src/video_core/morton.cpp index a310491a8..47e76d8fe 100644 --- a/src/video_core/morton.cpp +++ b/src/video_core/morton.cpp | |||
| @@ -192,6 +192,7 @@ static MortonCopyFn GetSwizzleFunction(MortonSwizzleMode mode, Surface::PixelFor | |||
| 192 | return linear_to_morton_fns[static_cast<std::size_t>(format)]; | 192 | return linear_to_morton_fns[static_cast<std::size_t>(format)]; |
| 193 | } | 193 | } |
| 194 | UNREACHABLE(); | 194 | UNREACHABLE(); |
| 195 | return morton_to_linear_fns[static_cast<std::size_t>(format)]; | ||
| 195 | } | 196 | } |
| 196 | 197 | ||
| 197 | /// 8x8 Z-Order coordinate from 2D coordinates | 198 | /// 8x8 Z-Order coordinate from 2D coordinates |