From 02c3abb39439342d5c0ccc3bafe5caf4da891103 Mon Sep 17 00:00:00 2001 From: castano Date: Tue, 29 Jul 2008 06:05:11 +0000 Subject: [PATCH] Fix color transforms. --- src/nvtt/InputOptions.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/nvtt/InputOptions.cpp b/src/nvtt/InputOptions.cpp index 38659f7..474c16c 100644 --- a/src/nvtt/InputOptions.cpp +++ b/src/nvtt/InputOptions.cpp @@ -346,10 +346,10 @@ void InputOptions::setLinearTransform(int channel, float w0, float w1, float w2, { nvCheck(channel >= 0 && channel < 4); - m.linearTransform(0, channel) = w0; - m.linearTransform(1, channel) = w1; - m.linearTransform(2, channel) = w2; - m.linearTransform(3, channel) = w3; + m.linearTransform(channel, 0) = w0; + m.linearTransform(channel, 1) = w1; + m.linearTransform(channel, 2) = w2; + m.linearTransform(channel, 3) = w3; } void InputOptions::setLinearTransform(int channel, float w0, float w1, float w2, float w3, float offset)