From 6c8eea5520ce20d5ef809df241650655ca9cf7f4 Mon Sep 17 00:00:00 2001 From: Pavel Krajcevski Date: Mon, 9 Sep 2013 10:31:53 -0500 Subject: [PATCH] Add superfluous code from when I was trying to match the decoder to PVR library. --- PVRTCEncoder/src/Image.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/PVRTCEncoder/src/Image.cpp b/PVRTCEncoder/src/Image.cpp index c91e0e0..4108340 100644 --- a/PVRTCEncoder/src/Image.cpp +++ b/PVRTCEncoder/src/Image.cpp @@ -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; }