Fix color weighted compression for single color blocks. Fixes issue 96.
This commit is contained in:
@ -470,6 +470,9 @@ __device__ void loadColorBlock(const uint * image, float3 colors[16], float3 sum
|
|||||||
|
|
||||||
*sameColor = (axis == make_float3(0, 0, 0));
|
*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);
|
dps[idx] = dot(rawColors[idx], axis);
|
||||||
|
|
||||||
__debugsync();
|
__debugsync();
|
||||||
|
Reference in New Issue
Block a user