From f7b0b143fd60528cf73530c3bafdef838ad02387 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Mon, 21 Sep 2015 18:07:11 -0700 Subject: fbo-depth-sample-compare: Use piglit_draw_rect_tex MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ian Romanick Reviewed-by: Matt Turner Thanked-by: Kristian Høgsberg --- tests/fbo/fbo-depth-sample-compare.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'tests') 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); } -- cgit v1.2.3