Fix color weighted compression for single color blocks. Fixes issue 96.
This commit is contained in:
parent
e38e584db2
commit
568f34d838
@ -470,6 +470,9 @@ __device__ void loadColorBlock(const uint * image, float3 colors[16], float3 sum
|
||||
|
||||
*sameColor = (axis == make_float3(0, 0, 0));
|
||||
|
||||
// Single color compressor needs unweighted colors.
|
||||
if (*sameColor) colors[idx] = rawColors[idx];
|
||||
|
||||
dps[idx] = dot(rawColors[idx], axis);
|
||||
|
||||
__debugsync();
|
||||
|
Loading…
Reference in New Issue
Block a user