projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dri/nouveau: nv04: Use rules-ng-ng headers
[mesa.git]
/
src
/
mesa
/
state_tracker
/
st_atom_clip.c
diff --git
a/src/mesa/state_tracker/st_atom_clip.c
b/src/mesa/state_tracker/st_atom_clip.c
index 23d709b814c7cbaac57aca81212cb9a5ac122de5..16f7aaae6f41bf0cd704d2c0fa8225d21a5a2b03 100644
(file)
--- a/
src/mesa/state_tracker/st_atom_clip.c
+++ b/
src/mesa/state_tracker/st_atom_clip.c
@@
-35,6
+35,8
@@
#include "pipe/p_context.h"
#include "st_atom.h"
#include "pipe/p_context.h"
#include "st_atom.h"
+#include "cso_cache/cso_context.h"
+
/* Second state atom for user clip planes:
*/
/* Second state atom for user clip planes:
*/
@@
-53,10
+55,12
@@
static void update_clip( struct st_context *st )
clip.nr++;
}
}
clip.nr++;
}
}
+
+ clip.depth_clamp = st->ctx->Transform.DepthClamp != GL_FALSE;
if (memcmp(&clip, &st->state.clip, sizeof(clip)) != 0) {
st->state.clip = clip;
if (memcmp(&clip, &st->state.clip, sizeof(clip)) != 0) {
st->state.clip = clip;
-
st->pipe->set_clip_state(st->pipe
, &clip);
+
cso_set_clip(st->cso_context
, &clip);
}
}
}
}