From 9c40614826cf9ecdc0b15c3bfaa9eeb69cb82fea Mon Sep 17 00:00:00 2001 From: Topi Pohjolainen Date: Wed, 9 Sep 2015 21:30:25 +0300 Subject: dbg: print all texsubimage failures --- tests/texturing/texsubimage.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tests/texturing/texsubimage.c b/tests/texturing/texsubimage.c index 56387c686..5d38736da 100644 --- a/tests/texturing/texsubimage.c +++ b/tests/texturing/texsubimage.c @@ -228,6 +228,7 @@ equal_images(GLenum target, GLuint tx, GLuint ty, GLuint tz, GLuint tw, GLuint th, GLuint td) { + GLboolean res = GL_TRUE; const GLubyte *ref; GLuint z, y, x; @@ -253,8 +254,13 @@ equal_images(GLenum target, else ref = original_ref; - if (memcmp(ref, testImg, 4)) - return GL_FALSE; + if (memcmp(ref, testImg, 4)) { + printf("%u:%u:%u:%u %u:%u:%u:%u %d %d %d\n", + ref[0], ref[1], ref[2], ref[3], + testImg[0], testImg[1], testImg[2], testImg[3], + x, y, z); + res = GL_FALSE; + } testImg += 4; original_ref += 4; @@ -263,7 +269,7 @@ equal_images(GLenum target, } } - return GL_TRUE; + return res; } /** -- cgit v1.2.3