diff options
| author | 2017-08-21 12:18:52 -0500 | |
|---|---|---|
| committer | 2017-08-26 11:58:22 -0500 | |
| commit | da88f3b8f0f9f1162b7ad41f70e2126195eee999 (patch) | |
| tree | 59ea676e313891a060acef7683b69d837c4ac8bb /src/video_core/swrasterizer/texturing.cpp | |
| parent | Merge pull request #2872 from wwylele/sw-geo-factor (diff) | |
| download | yuzu-da88f3b8f0f9f1162b7ad41f70e2126195eee999.tar.gz yuzu-da88f3b8f0f9f1162b7ad41f70e2126195eee999.tar.xz yuzu-da88f3b8f0f9f1162b7ad41f70e2126195eee999.zip | |
Warnings: Fixed a few missing-return warnings in video_core.
Diffstat (limited to 'src/video_core/swrasterizer/texturing.cpp')
| -rw-r--r-- | src/video_core/swrasterizer/texturing.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/swrasterizer/texturing.cpp b/src/video_core/swrasterizer/texturing.cpp index 4f02b93f2..79b1ce841 100644 --- a/src/video_core/swrasterizer/texturing.cpp +++ b/src/video_core/swrasterizer/texturing.cpp | |||
| @@ -89,6 +89,8 @@ Math::Vec3<u8> GetColorModifier(TevStageConfig::ColorModifier factor, | |||
| 89 | case ColorModifier::OneMinusSourceBlue: | 89 | case ColorModifier::OneMinusSourceBlue: |
| 90 | return (Math::Vec3<u8>(255, 255, 255) - values.bbb()).Cast<u8>(); | 90 | return (Math::Vec3<u8>(255, 255, 255) - values.bbb()).Cast<u8>(); |
| 91 | } | 91 | } |
| 92 | |||
| 93 | UNREACHABLE(); | ||
| 92 | }; | 94 | }; |
| 93 | 95 | ||
| 94 | u8 GetAlphaModifier(TevStageConfig::AlphaModifier factor, const Math::Vec4<u8>& values) { | 96 | u8 GetAlphaModifier(TevStageConfig::AlphaModifier factor, const Math::Vec4<u8>& values) { |
| @@ -119,6 +121,8 @@ u8 GetAlphaModifier(TevStageConfig::AlphaModifier factor, const Math::Vec4<u8>& | |||
| 119 | case AlphaModifier::OneMinusSourceBlue: | 121 | case AlphaModifier::OneMinusSourceBlue: |
| 120 | return 255 - values.b(); | 122 | return 255 - values.b(); |
| 121 | } | 123 | } |
| 124 | |||
| 125 | UNREACHABLE(); | ||
| 122 | }; | 126 | }; |
| 123 | 127 | ||
| 124 | Math::Vec3<u8> ColorCombine(TevStageConfig::Operation op, const Math::Vec3<u8> input[3]) { | 128 | Math::Vec3<u8> ColorCombine(TevStageConfig::Operation op, const Math::Vec3<u8> input[3]) { |