summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/TextureDecoder_Common.cpp
diff options
context:
space:
mode:
authorskidau <skidau@gmail.com>2014-12-13 19:47:06 +1100
committerskidau <skidau@gmail.com>2014-12-13 19:47:06 +1100
commitd02eb3ca59c8ca435aae617ff1484525c796a330 (patch)
tree7b2044a4a065571f7362f9927f5e1f451c2f0de2 /Source/Core/VideoCommon/TextureDecoder_Common.cpp
parent00b05bb18c6a367044895ff2dcc485524a0f711f (diff)
parentb030d290671c283020c405dfd9e8658935dcf1cf (diff)
Merge pull request #1640 from rohit-n/switch-default
Silence some -Wswitch-default warnings.
Diffstat (limited to 'Source/Core/VideoCommon/TextureDecoder_Common.cpp')
-rw-r--r--Source/Core/VideoCommon/TextureDecoder_Common.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/TextureDecoder_Common.cpp b/Source/Core/VideoCommon/TextureDecoder_Common.cpp
index 71e801afe7..e879e45e18 100644
--- a/Source/Core/VideoCommon/TextureDecoder_Common.cpp
+++ b/Source/Core/VideoCommon/TextureDecoder_Common.cpp
@@ -571,6 +571,9 @@ void TexDecoder_DecodeTexel(u8 *dst, const u8 *src, int s, int t, int imageWidth
case 7:
color = MakeRGBA(red2, green2, blue2, 0);
break;
+ default:
+ color = 0;
+ break;
}
*((u32*)dst) = color;