summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-07-27 09:27:56 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-07-27 09:27:56 -0600
commit6abdad28f6f6c69158b942fe420a55f12c71fb08 (patch)
treee7aa9ff9a8c0af06e369cf87be0449871adc09c5
parentdf23ebbb9fe6aca7263371efc6ab6e6f4c1cf423 (diff)
check scissor state
-rw-r--r--src/mesa/state_tracker/st_atom_setup.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_atom_setup.c b/src/mesa/state_tracker/st_atom_setup.c
index 6ee96f6178..3eac2588df 100644
--- a/src/mesa/state_tracker/st_atom_setup.c
+++ b/src/mesa/state_tracker/st_atom_setup.c
@@ -200,6 +200,10 @@ static void update_setup_state( struct st_context *st )
if (ctx->Multisample.Enabled)
setup.multisample = 1;
+ /* _NEW_SCISSOR */
+ if (ctx->Scissor.Enabled)
+ setup.scissor = 1;
+
if (memcmp(&setup, &st->state.setup, sizeof(setup)) != 0) {
st->state.setup = setup;
st->pipe->set_setup_state( st->pipe, &setup );
@@ -208,7 +212,7 @@ static void update_setup_state( struct st_context *st )
const struct st_tracked_state st_update_setup = {
.dirty = {
- .mesa = (_NEW_LIGHT | _NEW_POLYGON | _NEW_LINE |
+ .mesa = (_NEW_LIGHT | _NEW_POLYGON | _NEW_LINE | _NEW_SCISSOR |
_NEW_POINT | _NEW_BUFFERS | _NEW_MULTISAMPLE),
.st = 0,
},