[Piglit] [PATCH 2/2] max-texture-size: fix size reported in error message

Brian Paul brianp at vmware.com
Sat Feb 8 00:07:18 CET 2014


If texInitData() failed, it was with maxSide/2, not maxSide.
---
 tests/texturing/max-texture-size.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/texturing/max-texture-size.c b/tests/texturing/max-texture-size.c
index 49bf766..45e01c9 100644
--- a/tests/texturing/max-texture-size.c
+++ b/tests/texturing/max-texture-size.c
@@ -269,7 +269,7 @@ test_non_proxy_texture_size(GLenum target, GLenum internalformat)
 
 	if (pixels == NULL) {
 		printf("Error allocating texture data array for target %s, size %d\n",
-		       piglit_get_gl_enum_name(target), maxSide);
+		       piglit_get_gl_enum_name(target), maxSide/2);
 		result = PIGLIT_SKIP;
 		goto out;
 	}
-- 
1.7.10.4



More information about the Piglit mailing list