diff options
author | Sam Spilsbury <smspillaz@gmail.com> | 2016-03-27 06:04:16 +0200 |
---|---|---|
committer | Sam Spilsbury <smspillaz@gmail.com> | 2016-04-23 05:54:02 +0200 |
commit | 39d4994c15c46aeef0b3643e6db8b1f735674a7a (patch) | |
tree | 702621256bcd01495bbf238513004aaeb105382b /src/video_core | |
parent | ncch: Use correct format specifier (for long long uint) (diff) | |
download | yuzu-39d4994c15c46aeef0b3643e6db8b1f735674a7a.tar yuzu-39d4994c15c46aeef0b3643e6db8b1f735674a7a.tar.gz yuzu-39d4994c15c46aeef0b3643e6db8b1f735674a7a.tar.bz2 yuzu-39d4994c15c46aeef0b3643e6db8b1f735674a7a.tar.lz yuzu-39d4994c15c46aeef0b3643e6db8b1f735674a7a.tar.xz yuzu-39d4994c15c46aeef0b3643e6db8b1f735674a7a.tar.zst yuzu-39d4994c15c46aeef0b3643e6db8b1f735674a7a.zip |
Diffstat (limited to 'src/video_core')
-rw-r--r-- | src/video_core/pica.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/video_core/pica.h b/src/video_core/pica.h index 1810eca98..cf130d7f8 100644 --- a/src/video_core/pica.h +++ b/src/video_core/pica.h @@ -747,8 +747,13 @@ struct Regs { case LightingSampler::ReflectGreen: case LightingSampler::ReflectBlue: return (config == LightingConfig::Config4) || (config == LightingConfig::Config5) || (config == LightingConfig::Config7); + default: + UNREACHABLE_MSG("Regs::IsLightingSamplerSupported: Reached " + "unreachable section, sampler should be one " + "of Distribution0, Distribution1, Fresnel, " + "ReflectRed, ReflectGreen or ReflectBlue, instead " + "got %i", static_cast<int>(config)); } - return false; } struct { |