summaryrefslogtreecommitdiff
path: root/tests/spec
diff options
context:
space:
mode:
authorChad Versace <chad.versace@linux.intel.com>2014-07-03 16:06:24 -0700
committerChad Versace <chad.versace@linux.intel.com>2014-07-05 05:57:15 -0700
commit25012457261b85147374b058445a148c0673d437 (patch)
treeaa6f3c94b2a3554d6e759deef9f31ef4b3d18d9a /tests/spec
parent98515227c9f15e57286560a4ea62d20f8877b3e4 (diff)
oes_draw_texture: Fix piglit_rgbw_texture() call
Specify the data type, s/0/GL_UNSIGNED_BYTE/. The call worked because piglit_rgbw() ignores the type parameter on GLES. Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'tests/spec')
-rw-r--r--tests/spec/oes_draw_texture/oes_draw_texture.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/spec/oes_draw_texture/oes_draw_texture.c b/tests/spec/oes_draw_texture/oes_draw_texture.c
index 75cfd924f..2ec22a9a0 100644
--- a/tests/spec/oes_draw_texture/oes_draw_texture.c
+++ b/tests/spec/oes_draw_texture/oes_draw_texture.c
@@ -237,7 +237,8 @@ piglit_init(int argc, char **argv)
piglit_ortho_projection(piglit_width, piglit_height, GL_FALSE);
tex = piglit_rgbw_texture(GL_RGBA,
- TEXTURE_SIZE, TEXTURE_SIZE, GL_FALSE, GL_TRUE, 0);
+ TEXTURE_SIZE, TEXTURE_SIZE, GL_FALSE, GL_TRUE,
+ GL_UNSIGNED_BYTE);
glBindTexture(GL_TEXTURE_2D, tex);
glEnable(GL_TEXTURE_2D);