Small refactor

This commit is contained in:
Pavel Krajcevski 2013-09-09 14:16:45 -04:00
parent 5020f81f00
commit eb312ccb0a

View file

@ -174,11 +174,11 @@ namespace PVRTCC {
const uint8 lerpVals[3] = { 8, 4, 0 }; const uint8 lerpVals[3] = { 8, 4, 0 };
uint8 modVal = b.GetLerpValue(texelIndex); uint8 modVal = b.GetLerpValue(texelIndex);
if(modVal == 2) { if(modVal >= 2) {
modVal = 1; if(modVal == 2) {
punchThrough = true; punchThrough = true;
} else if(modVal == 3) { }
modVal = 2; modVal -= 1;
} }
lerpVal = lerpVals[modVal]; lerpVal = lerpVals[modVal];