From ab89030be6f55cd1955b9e033c62c2e3c3ba2a2f Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Thu, 20 Mar 2014 21:14:22 +0100 Subject: [PATCH 1/1] Add a few check_error() calls. --- dither_effect_test.cpp | 4 ++++ effect_chain_test.cpp | 2 ++ 2 files changed, 6 insertions(+) diff --git a/dither_effect_test.cpp b/dither_effect_test.cpp index 210a2e7..1b72ecb 100644 --- a/dither_effect_test.cpp +++ b/dither_effect_test.cpp @@ -7,6 +7,7 @@ #include "gtest/gtest.h" #include "image_format.h" #include "test_util.h" +#include "util.h" namespace movit { @@ -28,8 +29,11 @@ TEST(DitherEffectTest, NoDitherOnExactValues) { unsigned char out_data[size * size]; EffectChainTester tester(data, size, size, FORMAT_GRAYSCALE, COLORSPACE_sRGB, GAMMA_LINEAR, GL_RGBA8); + check_error(); tester.get_chain()->set_dither_bits(8); + check_error(); tester.run(out_data, GL_RED, COLORSPACE_sRGB, GAMMA_LINEAR); + check_error(); expect_equal(expected_data, out_data, size, size); } diff --git a/effect_chain_test.cpp b/effect_chain_test.cpp index 70701b3..f50d2ea 100644 --- a/effect_chain_test.cpp +++ b/effect_chain_test.cpp @@ -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); -- 2.39.5