Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.70 KB | None | 0 0
  1. diff --git a/tests/fbo/fbo-depth.c b/tests/fbo/fbo-depth.c
  2. index 6496514..21c3ba0 100644
  3. --- a/tests/fbo/fbo-depth.c
  4. +++ b/tests/fbo/fbo-depth.c
  5. @@ -88,10 +88,12 @@ static enum piglit_result test_clear(void)
  6.         glClear(GL_DEPTH_BUFFER_BIT);
  7.  
  8.         glEnable(GL_DEPTH_TEST);
  9. -       glDepthFunc(GL_EQUAL);
  10.  
  11.         glColor3fv(green);
  12. -       piglit_draw_rect_z(0.5, -1, -1, 2, 2); /* 0.75 converted to clip space is 0.5. */
  13. +       glDepthFunc(GL_LEQUAL);
  14. +       piglit_draw_rect_z(0.499, -1, -1, 1, 2); /* 0.75 converted to clip space is 0.5. *
  15. +       glDepthFunc(GL_GEQUAL);
  16. +       piglit_draw_rect_z(0.501, 0, -1, 1, 2);
  17.         glColor3f(1, 1, 1);
  18.  
  19.         glDisable(GL_DEPTH_TEST);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement