summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Sam Spilsbury2016-03-27 12:04:16 +0800
committerGravatar Sam Spilsbury2016-04-23 11:54:02 +0800
commit39d4994c15c46aeef0b3643e6db8b1f735674a7a (patch)
tree702621256bcd01495bbf238513004aaeb105382b /src
parentncch: Use correct format specifier (for long long uint) (diff)
downloadyuzu-39d4994c15c46aeef0b3643e6db8b1f735674a7a.tar.gz
yuzu-39d4994c15c46aeef0b3643e6db8b1f735674a7a.tar.xz
yuzu-39d4994c15c46aeef0b3643e6db8b1f735674a7a.zip
pica: Handle default lighting case
Diffstat (limited to 'src')
-rw-r--r--src/video_core/pica.h7
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 {
747 case LightingSampler::ReflectGreen: 747 case LightingSampler::ReflectGreen:
748 case LightingSampler::ReflectBlue: 748 case LightingSampler::ReflectBlue:
749 return (config == LightingConfig::Config4) || (config == LightingConfig::Config5) || (config == LightingConfig::Config7); 749 return (config == LightingConfig::Config4) || (config == LightingConfig::Config5) || (config == LightingConfig::Config7);
750 default:
751 UNREACHABLE_MSG("Regs::IsLightingSamplerSupported: Reached "
752 "unreachable section, sampler should be one "
753 "of Distribution0, Distribution1, Fresnel, "
754 "ReflectRed, ReflectGreen or ReflectBlue, instead "
755 "got %i", static_cast<int>(config));
750 } 756 }
751 return false;
752 } 757 }
753 758
754 struct { 759 struct {