st/mesa: Use cso context to manage clip state.

This commit is contained in:
Michal Krol 2010-02-24 15:28:41 +01:00
parent 227ae7b968
commit 8039ee09b8

View file

@ -35,6 +35,8 @@
#include "pipe/p_context.h"
#include "st_atom.h"
#include "cso_cache/cso_context.h"
/* Second state atom for user clip planes:
*/
@ -56,7 +58,7 @@ static void update_clip( struct st_context *st )
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);
}
}