summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2015-09-21 18:07:11 -0700
committerIan Romanick <ian.d.romanick@intel.com>2015-09-29 14:33:56 -0700
commitf7b0b143fd60528cf73530c3bafdef838ad02387 (patch)
tree78f6363eb82e017cc81db38fabe1b5e2a7c5b544
parent59726f003b75c01ac7d0025067e755b6f1b715da (diff)
fbo-depth-sample-compare: Use piglit_draw_rect_tex
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com> Thanked-by: Kristian Høgsberg <krh@bitplanet.net>
-rw-r--r--tests/fbo/fbo-depth-sample-compare.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/tests/fbo/fbo-depth-sample-compare.c b/tests/fbo/fbo-depth-sample-compare.c
index 7a2b1e7b4..7d78913b8 100644
--- a/tests/fbo/fbo-depth-sample-compare.c
+++ b/tests/fbo/fbo-depth-sample-compare.c
@@ -369,16 +369,7 @@ draw_quad_with_depth_texture(void)
glBindTexture(TexTarget, DepthTex);
glEnable(TexTarget);
- glBegin(GL_POLYGON);
- glTexCoord2f(0, 0);
- glVertex2f(-1, -1);
- glTexCoord2f(s1, 0);
- glVertex2f( 1, -1);
- glTexCoord2f(s1, t1);
- glVertex2f( 1, 1);
- glTexCoord2f(0, t1);
- glVertex2f(-1, 1);
- glEnd();
+ piglit_draw_rect_tex(-1, -1, 2, 2, 0, 0, s1, t1);
glDisable(TexTarget);
}