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 f6213c2..80b56a7 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);