X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=effect_chain_test.cpp;h=a760853772d791c02ac55a0f1a5fe8115688749a;hb=5a399deb97391cd6d260398e77a8c6cfa85d9795;hp=de3812aefc1488e9dd48aae63e7d3e053e485818;hpb=b2a5b6c97cead9cd8e41eca561f3364e95a1f9b3;p=movit diff --git a/effect_chain_test.cpp b/effect_chain_test.cpp index de3812a..a760853 100644 --- a/effect_chain_test.cpp +++ b/effect_chain_test.cpp @@ -1002,7 +1002,7 @@ TEST(EffectChainTest, IdentityWithOwnPool) { check_error(); glBindTexture(GL_TEXTURE_2D, texnum); check_error(); - glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA32F, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, NULL); + glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA32F, width, height, 0, GL_RGBA, GL_FLOAT, NULL); check_error(); glGenFramebuffers(1, &fbo); @@ -1024,7 +1024,9 @@ TEST(EffectChainTest, IdentityWithOwnPool) { chain.render_to_fbo(fbo, width, height); glBindFramebuffer(GL_FRAMEBUFFER, fbo); + check_error(); glReadPixels(0, 0, width, height, GL_RED, GL_FLOAT, out_data); + check_error(); expect_equal(expected_data, out_data, width, height);