X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=effect_chain_test.cpp;h=0161a92cf6b6a15ee8c37c7a7319fa5618af013e;hp=e5ca1cc1f28423c2ae8e8779695fdd3508c269e6;hb=2fdbe6e32ef5de09db9c890b6cd4355bf65dd1e5;hpb=2c8eabbbad9eb99409ef03970cbb0b5b46dda025 diff --git a/effect_chain_test.cpp b/effect_chain_test.cpp index e5ca1cc..0161a92 100644 --- a/effect_chain_test.cpp +++ b/effect_chain_test.cpp @@ -15,8 +15,8 @@ TEST(EffectChainTest, EmptyChain) { 0.75f, 1.0f, 1.0f, }; float out_data[6]; - EffectChainTester tester(data, 3, 2, COLORSPACE_sRGB, GAMMA_LINEAR); - tester.run(out_data, COLORSPACE_sRGB, GAMMA_LINEAR); + EffectChainTester tester(data, 3, 2, FORMAT_GRAYSCALE, COLORSPACE_sRGB, GAMMA_LINEAR); + tester.run(out_data, GL_RED, COLORSPACE_sRGB, GAMMA_LINEAR); expect_equal(data, out_data, 3, 2); } @@ -35,9 +35,9 @@ TEST(EffectChainTest, Identity) { 0.75f, 1.0f, 1.0f, }; float out_data[6]; - EffectChainTester tester(data, 3, 2, COLORSPACE_sRGB, GAMMA_LINEAR); + EffectChainTester tester(data, 3, 2, FORMAT_GRAYSCALE, COLORSPACE_sRGB, GAMMA_LINEAR); tester.get_chain()->add_effect(new IdentityEffect()); - tester.run(out_data, COLORSPACE_sRGB, GAMMA_LINEAR); + tester.run(out_data, GL_RED, COLORSPACE_sRGB, GAMMA_LINEAR); expect_equal(data, out_data, 3, 2); } @@ -57,9 +57,9 @@ TEST(EffectChainTest, TextureBouncePreservesIdentity) { 0.75f, 1.0f, 1.0f, }; float out_data[6]; - EffectChainTester tester(data, 3, 2, COLORSPACE_sRGB, GAMMA_LINEAR); + EffectChainTester tester(data, 3, 2, FORMAT_GRAYSCALE, COLORSPACE_sRGB, GAMMA_LINEAR); tester.get_chain()->add_effect(new BouncingIdentityEffect()); - tester.run(out_data, COLORSPACE_sRGB, GAMMA_LINEAR); + tester.run(out_data, GL_RED, COLORSPACE_sRGB, GAMMA_LINEAR); expect_equal(data, out_data, 3, 2); } @@ -74,9 +74,9 @@ TEST(MirrorTest, BasicTest) { 1.0f, 1.0f, 0.75f, }; float out_data[6]; - EffectChainTester tester(data, 3, 2, COLORSPACE_sRGB, GAMMA_LINEAR); + EffectChainTester tester(data, 3, 2, FORMAT_GRAYSCALE, COLORSPACE_sRGB, GAMMA_LINEAR); tester.get_chain()->add_effect(new MirrorEffect()); - tester.run(out_data, COLORSPACE_sRGB, GAMMA_LINEAR); + tester.run(out_data, GL_RED, COLORSPACE_sRGB, GAMMA_LINEAR); expect_equal(expected_data, out_data, 3, 2); }