aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_atom_clip.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2010-07-21 09:14:43 +0200
committerMarek Olšák <[email protected]>2010-07-21 22:54:34 +0200
commitc304869ec02793f2d8bf363d1e3b37c3d121cca7 (patch)
tree49987a3408defc124e5f522e29bb57a0e970c30b /src/mesa/state_tracker/st_atom_clip.c
parent4460e9f0a1931c74ea364f19d7b1c458b6bc62d4 (diff)
st/mesa: implement depth clamp
Diffstat (limited to 'src/mesa/state_tracker/st_atom_clip.c')
-rw-r--r--src/mesa/state_tracker/st_atom_clip.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_atom_clip.c b/src/mesa/state_tracker/st_atom_clip.c
index 80c0e921398..16f7aaae6f4 100644
--- a/src/mesa/state_tracker/st_atom_clip.c
+++ b/src/mesa/state_tracker/st_atom_clip.c
@@ -55,6 +55,8 @@ static void update_clip( struct st_context *st )
clip.nr++;
}
}
+
+ clip.depth_clamp = st->ctx->Transform.DepthClamp != GL_FALSE;
if (memcmp(&clip, &st->state.clip, sizeof(clip)) != 0) {
st->state.clip = clip;