1
0
mirror of https://github.com/citra-emu/citra.git synced 2024-12-21 04:00:08 +00:00

pica: Handle default lighting case

This commit is contained in:
Sam Spilsbury 2016-03-27 12:04:16 +08:00
parent 60f2587eac
commit 39d4994c15

View File

@ -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 {