From 279e7dc60df32e45c3a6da0aa55fb118c24a88a8 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 13 Oct 2012 14:41:54 +0200 Subject: [PATCH] MipmapGenerationWorks should be run with linear in/out (there was a cut-and-paste snafu). --- effect_chain_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.39.2