mesa: Add support for ARB_depth_clamp.
[mesa.git] / src / mesa / swrast / s_span.c
index 0e2793b47403fde0cc50484320a1d91d2e7afdb6..a45eac438e493e5b76ee02664efe99d80059b4a8 100644 (file)
@@ -880,6 +880,9 @@ _swrast_write_index_span( GLcontext *ctx, SWspan *span)
       stipple_polygon_span(ctx, span);
    }
 
+   if (ctx->Transform.DepthClamp)
+      _swrast_depth_clamp_span(ctx, span);
+
    /* Stencil and Z testing */
    if (ctx->Stencil._Enabled || ctx->Depth.Test) {
       if (!(span->arrayMask & SPAN_Z))