From 29dbee6d7375145fda1346dbd2531017c9ce8e1e Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Tue, 14 Feb 2017 00:10:10 +0100 Subject: [PATCH] Fix some test breakage. --- test_util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2