mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
check scissor state
This commit is contained in:
parent
df23ebbb9f
commit
6abdad28f6
1 changed files with 5 additions and 1 deletions
|
|
@ -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,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue