Fix error in CUDA single color compressor.

This commit is contained in:
castano 2008-10-27 07:49:32 +00:00
parent 34c4b959ad
commit 72b27815de

View File

@ -191,6 +191,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);
#if __DEVICE_EMULATION__