]> git.sesse.net Git - nageru/commitdiff
Fix an off-by-one in the indexing.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 28 Feb 2016 15:50:38 +0000 (16:50 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 28 Feb 2016 15:50:38 +0000 (16:50 +0100)
simple.lua

index 10c9bebbd03da404670602bbcda7e5f90a7fb035..1e895d5cb69f7a236b6932b5846b7f95e721104d 100644 (file)
@@ -89,9 +89,9 @@ end
 -- The color is in linear light (not sRGB gamma).
 function set_wb(channel, red, green, blue)
        if channel == 2 then
-               input_neutral_color[0] = { red, green, blue }
-       elseif channel == 3 then
                input_neutral_color[1] = { red, green, blue }
+       elseif channel == 3 then
+               input_neutral_color[2] = { red, green, blue }
        end
 end