summaryrefslogtreecommitdiff
path: root/src/video_core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2016-04-24 02:02:45 -0400
committerbunnei <bunneidev@gmail.com>2016-04-24 02:02:45 -0400
commit0964a3ff530f2eb5b7ecdf9dfbb74deea890352d (patch)
treec566efaf69f8d3564d1e678a0a31981a52794a8a /src/video_core
parent4c9ed98084e50d093399db03bada1906d06cd765 (diff)
parent205e8f9f9ece7ee335a1987aa4a1b72f7409abd5 (diff)
Merge pull request #1576 from smspillaz/fix-build-errors-03272016
Fix various build errors encountered on Clang 3.9 on OS X
Diffstat (limited to 'src/video_core')
-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 {
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 {