[Piglit] [PATCH 2/2] oes_compressed_paletted_texture: add missing BindTexture()

Ian Romanick idr at freedesktop.org
Tue Jul 28 13:08:02 PDT 2015


On 07/27/2015 02:13 PM, Nanley Chery wrote:
> From: Nanley Chery <nanley.g.chery at intel.com>
> 
> Without glBindTexture(), the test was unintentionally modifying the default
> texture object. Make it use the generated texture instead.
> 
> Signed-off-by: Nanley Chery <nanley.g.chery at intel.com>
> Cc: Ian Romanick <ian.d.romanick at intel.com>

This patch is

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

> ---
>  .../oes_compressed_paletted_texture-api.c                                | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/tests/spec/oes_compressed_paletted_texture/oes_compressed_paletted_texture-api.c b/tests/spec/oes_compressed_paletted_texture/oes_compressed_paletted_texture-api.c
> index 4d9f5b7..d8973d4 100644
> --- a/tests/spec/oes_compressed_paletted_texture/oes_compressed_paletted_texture-api.c
> +++ b/tests/spec/oes_compressed_paletted_texture/oes_compressed_paletted_texture-api.c
> @@ -70,6 +70,7 @@ piglit_init(int argc, char **argv)
>  	piglit_require_extension("GL_OES_compressed_paletted_texture");
>  
>  	glGenTextures(1, &tex);
> +	glBindTexture(GL_TEXTURE_2D, &tex);
>  
>  	/* The OES_compressed_paletted_texture spec says:
>  	 *
> 



More information about the Piglit mailing list