When the compressor recognized that a shape was a single color, it determines
an optimal encoding for that color. However, only the error in the single
pixel was returned as the error for the overall shape. This caused problems
with modes that do not support alpha and shapes that do have alpha.
This commit is contained in:
Pavel Krajcevski 2013-03-30 11:16:32 -04:00
parent d80078f1dd
commit ff18e8f33e

View file

@ -985,7 +985,7 @@ double BC7CompressionMode::CompressCluster(const RGBACluster &cluster, RGBAVecto
bestIndices[i] = 1;
}
return bestErr;
return cluster.GetNumPoints() * bestErr;
}
const uint32 nBuckets = (1 << GetNumberOfBitsPerIndex());