X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=test_util.cpp;fp=test_util.cpp;h=7956eb3ff7a8a77479453badb85bfc1c131bd844;hp=fadb2d77f084fb3b246cd491e4aab3b3a94fceda;hb=29dbee6d7375145fda1346dbd2531017c9ce8e1e;hpb=25162b5457057af3ebcc1649571eeeb923e90098 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);