From 56c77711005cb7bbc0124f1fadfb7a3d77abd709 Mon Sep 17 00:00:00 2001 From: castano Date: Thu, 28 Feb 2008 21:45:26 +0000 Subject: [PATCH] Fix end of lines. --- src/nvtt/cuda/CompressKernel.cu | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/nvtt/cuda/CompressKernel.cu b/src/nvtt/cuda/CompressKernel.cu index 08c331a..43fc3f7 100644 --- a/src/nvtt/cuda/CompressKernel.cu +++ b/src/nvtt/cuda/CompressKernel.cu @@ -1012,10 +1012,10 @@ __device__ void saveSingleColorBlockDXT1(float3 color, uint2 * result) ushort color0 = (OMatch5[r][0] << 11) | (OMatch6[g][0] << 5) | OMatch5[b][0]; ushort color1 = (OMatch5[r][1] << 11) | (OMatch6[g][1] << 5) | OMatch5[b][1]; - if (color0 < color1) - { - result[bid].x = (color0 << 16) | color1; - result[bid].y = 0xffffffff; + if (color0 < color1) + { + result[bid].x = (color0 << 16) | color1; + result[bid].y = 0xffffffff; } else {