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

Nanley Chery nanleychery at gmail.com
Mon Oct 5 16:26:33 PDT 2015


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



More information about the Piglit mailing list