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

Nanley Chery nanleychery at gmail.com
Mon Jul 27 14:13:13 PDT 2015


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>
---
 .../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:
 	 *
-- 
2.4.2



More information about the Piglit mailing list