Add superfluous code from when I was trying to match the decoder to PVR library.

This commit is contained in:
Pavel Krajcevski 2013-09-09 10:31:53 -05:00
parent 09b5680245
commit 6c8eea5520

View file

@ -238,12 +238,9 @@ void Image::ExpandTo8888() {
uint32 shift = fractionDepth[c] - (fullDepth[c] - currentDepth[c]);
uint32 fractionBits = m_FractionalPixels[pidx].Component(c) >> shift;
assert(fractionBits < 8);
uint32 component = m_Pixels[pidx].Component(c);
component += ((fractionBits * numerator) / denominator);
if(component > 255)
component = 255;
m_Pixels[pidx].Component(c) = component;
}