diff options
| author | 2018-12-19 12:52:32 +1100 | |
|---|---|---|
| committer | 2018-12-19 12:52:32 +1100 | |
| commit | fdd649e2ef56ea473e253511d35fe6c10e0fb241 (patch) | |
| tree | 82bf8e6a7cd1dd344c9bb0b3a728fc17c38de629 /src/video_core/morton.cpp | |
| parent | Merge pull request #1913 from MerryMage/default-fpcr (diff) | |
| download | yuzu-fdd649e2ef56ea473e253511d35fe6c10e0fb241.tar.gz yuzu-fdd649e2ef56ea473e253511d35fe6c10e0fb241.tar.xz yuzu-fdd649e2ef56ea473e253511d35fe6c10e0fb241.zip | |
Fixed uninitialized memory due to missing returns in canary
Functions which are suppose to crash on non canary builds usually don't return anything which lead to uninitialized memory being used.
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 |