Fix color weighted compression for single color blocks. Fixes issue 96.

This commit is contained in:
castano 2009-09-21 18:46:48 +00:00
parent e38e584db2
commit 568f34d838

View File

@ -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();