[Piglit] [PATCH 1/2] max-texture-size: test glTexSubImage2D() for GL_TEXTURE_RECTANGLE too

Ian Romanick idr at freedesktop.org
Tue Feb 11 03:47:52 CET 2014


Series is

Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>

On 02/07/2014 03:07 PM, Brian Paul wrote:
> All the other texture targets test glTexSubImage(), so do it for
> this target too.
> ---
>  tests/texturing/max-texture-size.c |    3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/tests/texturing/max-texture-size.c b/tests/texturing/max-texture-size.c
> index 60ebc15..49bf766 100644
> --- a/tests/texturing/max-texture-size.c
> +++ b/tests/texturing/max-texture-size.c
> @@ -297,6 +297,9 @@ test_non_proxy_texture_size(GLenum target, GLenum internalformat)
>  		glTexImage2D(target, 0, internalformat, maxSide,
>  			     maxSide, 0, GL_RGBA, GL_FLOAT, NULL);
>  		STOP_ON_ERRORS;
> +
> +		glTexSubImage2D(target, 0, 0, 0, maxSide/2, maxSide/2,
> +				GL_RGBA, GL_FLOAT, pixels);
>  		break;
>  
>  	case GL_TEXTURE_3D:
> 



More information about the Piglit mailing list