summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/nv40/nv40_state_emit.c
diff options
context:
space:
mode:
authorBen Skeggs <skeggsb@gmail.com>2008-04-03 08:21:56 +1000
committerBen Skeggs <skeggsb@gmail.com>2008-04-04 11:17:28 +1000
commit6fbc50e013f1ac7684d8d63d9433f6dd72b4c1cb (patch)
treef6c018daf7e238df95cad2ed2e93c4b3a37a9171 /src/gallium/drivers/nv40/nv40_state_emit.c
parent7e9b83ac0ac59298f1b983e6a9aed3a8f2ccb147 (diff)
nv40: static attribs -> stateobj
Diffstat (limited to 'src/gallium/drivers/nv40/nv40_state_emit.c')
-rw-r--r--src/gallium/drivers/nv40/nv40_state_emit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/nv40/nv40_state_emit.c b/src/gallium/drivers/nv40/nv40_state_emit.c
index 722b9f31e6..c742e4f421 100644
--- a/src/gallium/drivers/nv40/nv40_state_emit.c
+++ b/src/gallium/drivers/nv40/nv40_state_emit.c
@@ -82,7 +82,8 @@ nv40_state_emit(struct nv40_context *nv40)
if (!(states & (1ULL << i)))
continue;
so_ref (state->hw[i], &nv40->screen->state[i]);
- so_emit(nv40->nvws, nv40->screen->state[i]);
+ if (state->hw[i])
+ so_emit(nv40->nvws, nv40->screen->state[i]);
states &= ~(1ULL << i);
}