diff options
author | Nanley Chery <nanley.g.chery@intel.com> | 2015-07-27 08:32:13 -0700 |
---|---|---|
committer | Nanley Chery <nanley.g.chery@intel.com> | 2015-10-05 16:01:57 -0700 |
commit | 1e35f1a1df6b164835c75b764b49533812b2f569 (patch) | |
tree | 677b1363c945ebc116200e23bb9236563049ed8b /tests | |
parent | 93458f8fc0f7bcf5244e1593d3a687e375c82d9b (diff) |
oes_compressed_paletted_texture: add missing BindTexture()
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@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/spec/oes_compressed_paletted_texture/oes_compressed_paletted_texture-api.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 13b0bba3f..15601987f 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,6 +71,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: * |