From: Steinar H. Gunderson Date: Sat, 13 Oct 2012 12:41:54 +0000 (+0200) Subject: MipmapGenerationWorks should be run with linear in/out (there was a cut-and-paste... X-Git-Tag: 1.0~272 X-Git-Url: https://git.sesse.net/?p=movit;a=commitdiff_plain;h=279e7dc60df32e45c3a6da0aa55fb118c24a88a8;ds=sidebyside MipmapGenerationWorks should be run with linear in/out (there was a cut-and-paste snafu). --- diff --git a/effect_chain_test.cpp b/effect_chain_test.cpp index 0a5a93e..ca208da 100644 --- a/effect_chain_test.cpp +++ b/effect_chain_test.cpp @@ -268,9 +268,9 @@ TEST(EffectChainTest, MipmapGenerationWorks) { 0.25f, 0.25f, 0.25f, 0.25f, }; float out_data[16 * 4]; - EffectChainTester tester(data, 4, 16, FORMAT_GRAYSCALE, COLORSPACE_sRGB, GAMMA_REC_709); + EffectChainTester tester(data, 4, 16, FORMAT_GRAYSCALE, COLORSPACE_sRGB, GAMMA_LINEAR); tester.get_chain()->add_effect(new MipmapNeedingEffect()); - tester.run(out_data, GL_RED, COLORSPACE_sRGB, GAMMA_REC_709); + tester.run(out_data, GL_RED, COLORSPACE_sRGB, GAMMA_LINEAR); expect_equal(expected_data, out_data, 4, 16); }