From: Ian Romanick <[email protected]>

Signed-off-by: Ian Romanick <[email protected]>
---
 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

_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to