Merge pull request #1640 from rohit-n/switch-default

Silence some -Wswitch-default warnings.
This commit is contained in:
skidau
2014-12-13 19:47:06 +11:00
7 changed files with 20 additions and 17 deletions

View File

@ -959,6 +959,9 @@ union AlphaTest
if ((comp0 == ALWAYS && comp1 == ALWAYS) || (comp0 == NEVER && comp1 == NEVER))
return PASS;
break;
default:
return UNDETERMINED;
}
return UNDETERMINED;
}

View File

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