From: Steinar H. Gunderson Date: Mon, 13 Feb 2017 23:10:10 +0000 (+0100) Subject: Fix some test breakage. X-Git-Tag: 1.5.0~22 X-Git-Url: https://git.sesse.net/?p=movit;a=commitdiff_plain;h=29dbee6d7375145fda1346dbd2531017c9ce8e1e Fix some test breakage. --- diff --git a/test_util.cpp b/test_util.cpp index fadb2d7..7956eb3 100644 --- a/test_util.cpp +++ b/test_util.cpp @@ -227,7 +227,7 @@ void EffectChainTester::internal_run(T *out_data, T *out_data2, T *out_data3, GL check_error(); } - if (format == GL_RGBA && sizeof(*ptr) == 1) { + if (format == GL_RGBA && (type == GL_UNSIGNED_BYTE || type == GL_FLOAT)) { vertical_flip(ptr, width * 4, height); } else { vertical_flip(ptr, width, height);