summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_state.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2009-11-15 16:41:25 +0100
committerCorbin Simpson <[email protected]>2009-11-20 18:04:06 -0800
commit4e1236e60267d036a1a604412bd7efd7a249a588 (patch)
treebd1548ba02a50d8daa124df85e5409c463155b2d /src/gallium/drivers/r300/r300_state.c
parentb7078a88119e248b0196f7446abe029c22f1ee28 (diff)
r300g: fix updating a vertex format
We must update PSC when we change the vertex format, e.g. vertex colors from RGBA to BGRA.
Diffstat (limited to 'src/gallium/drivers/r300/r300_state.c')
-rw-r--r--src/gallium/drivers/r300/r300_state.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_state.c b/src/gallium/drivers/r300/r300_state.c
index f2867675f0f..997d59ff6ff 100644
--- a/src/gallium/drivers/r300/r300_state.c
+++ b/src/gallium/drivers/r300/r300_state.c
@@ -687,6 +687,8 @@ static void r300_set_vertex_buffers(struct pipe_context* pipe,
draw_flush(r300->draw);
draw_set_vertex_buffers(r300->draw, count, buffers);
}
+
+ r300->state |= R300_NEW_VERTEX_FORMAT;
}
static void r300_set_vertex_elements(struct pipe_context* pipe,