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

Kenneth Graunke kenneth at whitecape.org
Sun Jan 22 16:51:18 PST 2012


On 01/22/2012 02:13 PM, Morgan Armand wrote:
> ---
>   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]);

Oops. :(  Thanks for the fix.

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>



More information about the Piglit mailing list