summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/texturing/texsubimage.c4
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);