diff options
author | Chad Versace <chad.versace@linux.intel.com> | 2012-11-30 14:31:21 -0800 |
---|---|---|
committer | Chad Versace <chad.versace@linux.intel.com> | 2012-11-30 18:45:50 -0800 |
commit | 5b8c60ced65a950f9f5fa6a65c3d61b4474575c2 (patch) | |
tree | b448953af48cadb71fc4887f0e449fe061123928 /tests/spec/arb_shader_texture_lod | |
parent | 598fc3e4aa3306cf00ede01236b4bad7d294c6eb (diff) |
util/gl: Kill shader wrapper functions
This patch kills the wrapper functions defined in piglit-shader.h for GL.
They are rendered obsolete by piglit-dispatch.
A subset of the wrappers are kept for GLES1 and GLES2.
- All GLES1 wrappers are kept and are renamed to match the core GL
names. That is, piglit_$func is renamed to gl$func. As before, the
wrappers simply raise an assertion failure because GLES1 does not
suppport shaders.
- The subset of GLES2 wrappers that raise an assertion, because the
function is not supported on GLES2, are also kept and likewise
renamed.
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Diffstat (limited to 'tests/spec/arb_shader_texture_lod')
-rw-r--r-- | tests/spec/arb_shader_texture_lod/execution/texgrad.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/spec/arb_shader_texture_lod/execution/texgrad.c b/tests/spec/arb_shader_texture_lod/execution/texgrad.c index e502ecd54..bafefe42a 100644 --- a/tests/spec/arb_shader_texture_lod/execution/texgrad.c +++ b/tests/spec/arb_shader_texture_lod/execution/texgrad.c @@ -175,11 +175,11 @@ enum piglit_result piglit_display(void) glClear(GL_COLOR_BUFFER_BIT); glViewport(0, 0, piglit_width/2, piglit_height); - piglit_UseProgram(prog_tex); + glUseProgram(prog_tex); draw_quad(); glViewport(piglit_width/2, 0, piglit_width/2, piglit_height); - piglit_UseProgram(prog_texgrad); + glUseProgram(prog_texgrad); draw_quad(); if (!piglit_probe_rect_halves_equal_rgba(0, 0, piglit_width, piglit_height)) |