summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/draw/draw_context.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2010-07-21 20:31:39 +0200
committerMarek Olšák <[email protected]>2010-07-21 22:54:34 +0200
commit9ca48de1068d4ebce81853d29455c83b4898e25e (patch)
treeb4aba8b55759b2350403de85fbcbf0f362d8c430 /src/gallium/auxiliary/draw/draw_context.c
parentc304869ec02793f2d8bf363d1e3b37c3d121cca7 (diff)
draw: disable depth clipping if depth clamp is enabled
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_context.c')
-rw-r--r--src/gallium/auxiliary/draw/draw_context.c1
1 files changed, 1 insertions, 0 deletions
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;
}