mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2024-11-24 08:35:37 +01:00
Bug fix
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:
parent
d80078f1dd
commit
ff18e8f33e
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user