X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=effect_chain_test.cpp;h=673e9cc3665fd1acac09d9815eaa84947d416e22;hp=a760853772d791c02ac55a0f1a5fe8115688749a;hb=60e4852ff1b04c525a9e3f1c98a1017db28b27bd;hpb=87e2a30d7da9a7778356f1b93593b1296dedff71 diff --git a/effect_chain_test.cpp b/effect_chain_test.cpp index a760853..673e9cc 100644 --- a/effect_chain_test.cpp +++ b/effect_chain_test.cpp @@ -983,7 +983,7 @@ TEST(EffectChainTest, IdentityWithOwnPool) { 0.75f, 1.0f, 1.0f, 0.0f, 0.25f, 0.3f, }; - float out_data[6]; + float out_data[6], temp[6 * 4]; EffectChain chain(width, height); movit_debug_level = MOVIT_DEBUG_ON; @@ -1025,8 +1025,11 @@ TEST(EffectChainTest, IdentityWithOwnPool) { glBindFramebuffer(GL_FRAMEBUFFER, fbo); check_error(); - glReadPixels(0, 0, width, height, GL_RED, GL_FLOAT, out_data); + glReadPixels(0, 0, width, height, GL_RGBA, GL_FLOAT, temp); check_error(); + for (unsigned i = 0; i < 6; ++i) { + out_data[i] = temp[i * 4]; + } expect_equal(expected_data, out_data, width, height);