[Piglit] [PATCH 15/17] fbo-depth-sample-compare: Use piglit_draw_rect_tex

Ian Romanick idr at freedesktop.org
Tue Sep 22 08:36:40 PDT 2015


From: Ian Romanick <ian.d.romanick at intel.com>

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
---
 tests/fbo/fbo-depth-sample-compare.c | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/tests/fbo/fbo-depth-sample-compare.c b/tests/fbo/fbo-depth-sample-compare.c
index 7a2b1e7..7d78913 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);
 }
-- 
2.1.0



More information about the Piglit mailing list