diff options
author | Topi Pohjolainen <topi.pohjolainen@intel.com> | 2015-10-19 11:02:43 +0300 |
---|---|---|
committer | Topi Pohjolainen <topi.pohjolainen@intel.com> | 2015-10-26 14:31:35 +0200 |
commit | 69afa9ec11ffe6f8a79594e15700cc6531ca858a (patch) | |
tree | f58faf87cc14ce2623e6b1b353b2bbbf5ead5732 | |
parent | 26808cbb23f6440559d853d333265ef651423694 (diff) |
dbg
-rw-r--r-- | tests/texturing/texsubimage.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/texturing/texsubimage.c b/tests/texturing/texsubimage.c index e9e481e87..dca69e006 100644 --- a/tests/texturing/texsubimage.c +++ b/tests/texturing/texsubimage.c @@ -256,7 +256,8 @@ equal_images(GLenum target, else ref = original_ref; - if (memcmp(ref, testImg, 4)) { + if (ref == original_ref && + 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], @@ -543,7 +544,6 @@ test_format(GLenum target, GLenum intFormat) glBindBuffer(GL_PIXEL_UNPACK_BUFFER, 0); /* draw test image */ - glClear(GL_COLOR_BUFFER_BIT); draw_and_read_texture(w, h, d, testImg); glDeleteTextures(1, &tex); |