Fix error in CUDA single color compressor.
This commit is contained in:
parent
7a85fdc59a
commit
112bf2c5c3
@ -191,6 +191,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);
|
||||||
|
|
||||||
#if __DEVICE_EMULATION__
|
#if __DEVICE_EMULATION__
|
||||||
|
Loading…
Reference in New Issue
Block a user