]> git.sesse.net Git - movit/commitdiff
Fix a segfault in the DoubleSaturation test.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 13 Oct 2012 13:46:12 +0000 (15:46 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 13 Oct 2012 13:46:12 +0000 (15:46 +0200)
saturation_effect_test.cpp

index f6213c264bd966b7acf6175bcc74c58676a6cc5b..80b56a7d37fc98d92b2ac55540173ede64736879 100644 (file)
@@ -55,7 +55,7 @@ TEST(SaturationEffectTest, DoubleSaturation) {
        };
 
        float out_data[3 * 4];
-       EffectChainTester tester(data, 5, 1, FORMAT_RGBA, COLORSPACE_sRGB, GAMMA_LINEAR);
+       EffectChainTester tester(data, 3, 1, FORMAT_RGBA, COLORSPACE_sRGB, GAMMA_LINEAR);
        Effect *saturation_effect = tester.get_chain()->add_effect(new SaturationEffect());
        ASSERT_TRUE(saturation_effect->set_float("saturation", 2.0f));
        tester.run(out_data, GL_RGBA, COLORSPACE_sRGB, GAMMA_LINEAR);