Merge commit 'origin/master' into gallium-0.2
[mesa.git] / progs / trivial / quad-offset-units.c
index 7ef96928525e4db9f7cc5a5f8f736046db8d8701..d5db21469e61dacee1f759df01cc4dae762c9db6 100644 (file)
@@ -75,14 +75,6 @@ static void Draw(void)
    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); 
    glEnable(GL_DEPTH_TEST);
 
-   /*
-    * Because of clamping, the Z values of the first polygon may
-    * be 1.0 (the same as the clear value) so nothing would be
-    * drawn if the depth func is GL_LESS.  Set it to GL_LEQUAL
-    * so we can see polygons with Z==1.
-    */
-   glDepthFunc(GL_LEQUAL);
-
    /* red: offset back */
    glEnable(GL_POLYGON_OFFSET_FILL);
    glPolygonOffset(0, 4);