X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=effect_chain_test.cpp;h=f50d2ead3685db68703d7df412a9e2cb7cf3361b;hp=b1f0815cc62d80b604ca5a4fc0f1618d941ca913;hb=cef6dcbc9ebaceb7b0cb47d6a519cb08a390c358;hpb=e9f0fb5e6ae193a5a853ac5aef82927b6a81267a diff --git a/effect_chain_test.cpp b/effect_chain_test.cpp index b1f0815..f50d2ea 100644 --- a/effect_chain_test.cpp +++ b/effect_chain_test.cpp @@ -2,7 +2,7 @@ // // Note that this also contains the tests for some of the simpler effects. -#include +#include #include #include "effect.h" @@ -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);