swrast: add missing call to _swrast_depth_bounds_test()
authorBrian Paul <brianp@vmware.com>
Fri, 15 Jan 2010 21:25:30 +0000 (14:25 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 15 Jan 2010 21:25:33 +0000 (14:25 -0700)
We were calling this from the CI span function, but not the RGBA
span function.

I don't know of a test program for the GL_EXT_depth_bounds_test
extension...

src/mesa/swrast/s_span.c

index 1a51d4f..07248c7 100644 (file)
@@ -1316,6 +1316,13 @@ _swrast_write_rgba_span( GLcontext *ctx, SWspan *span)
 
    ASSERT(span->end <= MAX_WIDTH);
 
+   /* Depth bounds test */
+   if (ctx->Depth.BoundsTest && fb->Visual.depthBits > 0) {
+      if (!_swrast_depth_bounds_test(ctx, span)) {
+         return;
+      }
+   }
+
 #ifdef DEBUG
    /* Make sure all fragments are within window bounds */
    if (span->arrayMask & SPAN_XY) {