mirror of
https://github.com/yuzu-emu/FasTC
synced 2024-11-26 16:57:56 +00: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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue