Fix another small bug

This commit is contained in:
Pavel Krajcevski 2014-11-03 17:14:29 -05:00
parent 610d2d611d
commit facdbe9d1c

View file

@ -312,7 +312,7 @@ namespace ASTCC {
while(--range > 0) {
IntegerEncodedValue val = IntegerEncodedValue::CreateEncoding(range);
uint32 bitLength = val.GetBitLength(nValues);
if(bitLength < nBitsForColorData) {
if(bitLength <= nBitsForColorData) {
// Find the smallest possible range that matches the given encoding
while(--range > 0) {
IntegerEncodedValue newval = IntegerEncodedValue::CreateEncoding(range);