From 9ca48de1068d4ebce81853d29455c83b4898e25e Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Wed, 21 Jul 2010 20:31:39 +0200 Subject: draw: disable depth clipping if depth clamp is enabled --- src/gallium/auxiliary/draw/draw_context.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gallium/auxiliary/draw/draw_context.c') diff --git a/src/gallium/auxiliary/draw/draw_context.c b/src/gallium/auxiliary/draw/draw_context.c index aac1ed602c7..c127f741881 100644 --- a/src/gallium/auxiliary/draw/draw_context.c +++ b/src/gallium/auxiliary/draw/draw_context.c @@ -216,6 +216,7 @@ void draw_set_clip_state( struct draw_context *draw, assert(clip->nr <= PIPE_MAX_CLIP_PLANES); memcpy(&draw->plane[6], clip->ucp, clip->nr * sizeof(clip->ucp[0])); draw->nr_planes = 6 + clip->nr; + draw->depth_clamp = clip->depth_clamp; } -- cgit v1.2.3