From: Nanley Chery <[email protected]>

Without glBindTexture(), the test was unintentionally modifying the default
texture object. Make it use the generated texture instead.

Signed-off-by: Nanley Chery <[email protected]>
Cc: Ian Romanick <[email protected]>
---
 .../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

_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to