[Piglit] [PATCH] texturing/shaders/common: fix a typo in, compute_miplevel_info.

Morgan Armand morgan.devel at gmail.com
Sun Jan 22 14:13:43 PST 2012


---
 tests/texturing/shaders/common.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tests/texturing/shaders/common.c b/tests/texturing/shaders/common.c
index 796a81f..d6a9321 100644
--- a/tests/texturing/shaders/common.c
+++ b/tests/texturing/shaders/common.c
@@ -113,7 +113,7 @@ compute_miplevel_info()

 	/* Compute the number of miplevels */
 	if (sampler.target == GL_TEXTURE_3D)
-		max_dimension = max3(base_size[0], base_size[1], base_size[3]);
+		max_dimension = max3(base_size[0], base_size[1], base_size[2]);
 	else
 		max_dimension = max2(base_size[0], base_size[1]);

-- 
1.7.7.1.msysgit.0


More information about the Piglit mailing list