diff options
author | Matt Turner <mattst88@gmail.com> | 2013-03-14 14:28:14 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2013-03-29 10:14:02 -0700 |
commit | 5ad37de0c1b0229799a21dab61d5320284c22377 (patch) | |
tree | b990c9c5dc30c39cf19cf553a3db841e725b125a | |
parent | 1f9c47bee1a346e21da445080867060bb104ddeb (diff) |
shader_runner: Add 'draw rect tex'
Same as draw rect but allows you to pass tex coordinates.
-rw-r--r-- | tests/shaders/shader_runner.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c index 5b084cb2..7f3ddbbf 100644 --- a/tests/shaders/shader_runner.c +++ b/tests/shaders/shader_runner.c @@ -1669,6 +1669,11 @@ piglit_display(void) piglit_report_result(PIGLIT_FAIL); } glClipPlane(GL_CLIP_PLANE0 + x, d); + } else if (string_match("draw rect tex", line)) { + program_must_be_in_use(); + get_floats(line + 13, c, 8); + piglit_draw_rect_tex(c[0], c[1], c[2], c[3], + c[4], c[5], c[6], c[7]); } else if (string_match("draw rect", line)) { program_must_be_in_use(); get_floats(line + 9, c, 4); |