diff --git a/src/nvtt/cuda/CompressKernel.cu b/src/nvtt/cuda/CompressKernel.cu index 5d748cb..e829a7c 100644 --- a/src/nvtt/cuda/CompressKernel.cu +++ b/src/nvtt/cuda/CompressKernel.cu @@ -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();