summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTopi Pohjolainen <topi.pohjolainen@intel.com>2015-09-09 21:30:25 +0300
committerTopi Pohjolainen <topi.pohjolainen@intel.com>2015-10-19 17:40:36 +0300
commit9c40614826cf9ecdc0b15c3bfaa9eeb69cb82fea (patch)
treef41b3162cc4bc3354da64092b4105af1f7b63f8a
parentcc16a6f19cecbafe5398ec2e1651b74bfc0c7596 (diff)
dbg: print all texsubimage failures
-rw-r--r--tests/texturing/texsubimage.c12
1 files 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;
}
/**