[Piglit] [PATCH] oes_compressed_paletted_texture: fix BindTexture() parameter

Anuj Phogat anuj.phogat at gmail.com
Wed Oct 7 09:23:38 PDT 2015


On Oct 5, 2015 4:23 PM, "Nanley Chery" <nanleychery at gmail.com> wrote:
>
> From: Nanley Chery <nanley.g.chery at intel.com>
>
> The second parameter to glBindTexture should accept a texture
> handle, not the address of one.
>
> Cc: Ian Romanick <ian.d.romanick at intel.com>
> Signed-off-by: Nanley Chery <nanley.g.chery at intel.com>
> ---
>  .../oes_compressed_paletted_texture-api.c
 | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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 1560198..48780ed 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
> @@ -71,7 +71,7 @@ piglit_init(int argc, char **argv)
>         piglit_require_extension("GL_OES_compressed_paletted_texture");
>
>         glGenTextures(1, &tex);
> -       glBindTexture(GL_TEXTURE_2D, &tex);
> +       glBindTexture(GL_TEXTURE_2D, tex);
>
>         /* The OES_compressed_paletted_texture spec says:
>          *
> --
>
> This (visibly) small error managed to slip by.
>
> 2.6.0
>
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit

Reviewed-by: Anuj Phogat <anuj.phogat at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20151007/896eb64a/attachment.html>


More information about the Piglit mailing list