summaryrefslogtreecommitdiff
path: root/src/gallium
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2010-02-27 20:00:38 +0100
committerMarek Olšák <maraeo@gmail.com>2010-02-27 20:08:46 +0100
commitf129a7dd686cb3d824253bffab8c8b32b8ef8b69 (patch)
tree341d7f8df4cc97d9110f8a0b293e8edd3563102b /src/gallium
parentc05f998f02b0799e46e6c306c03a09c35bd37cc0 (diff)
r300g: mark rasterizer_state as dirty only when it's not NULL
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/r300/r300_state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_state.c b/src/gallium/drivers/r300/r300_state.c
index ee4409c889..0fbb9e7716 100644
--- a/src/gallium/drivers/r300/r300_state.c
+++ b/src/gallium/drivers/r300/r300_state.c
@@ -824,13 +824,13 @@ static void r300_bind_rs_state(struct pipe_context* pipe, void* state)
if (rs) {
r300->tcl_bypass = rs->rs.bypass_vs_clip_and_viewport;
r300->polygon_offset_enabled = rs->rs.offset_cw || rs->rs.offset_ccw;
+ r300->rs_state.dirty = TRUE;
} else {
r300->tcl_bypass = FALSE;
r300->polygon_offset_enabled = FALSE;
}
r300->rs_state.state = rs;
- r300->rs_state.dirty = TRUE;
/* XXX Why is this still needed, dammit!? */
r300->scissor_state.dirty = TRUE;
r300->viewport_state.dirty = TRUE;