summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Gottschlag <mathias-go@web.de>2009-04-26 12:04:35 +0200
committerCorbin Simpson <MostAwesomeDude@gmail.com>2009-04-26 10:01:17 -0700
commit86d2144412915b0052a468806c4fba81d72a682d (patch)
treeca9b0105b3a5d896e313e7c20664cd8b0793931c
parent233c6fb694ebd946ae76cb48701adf4d2086b1c1 (diff)
r300-gallium: Add a draw_flush() to r300_flush().
This fixes some missing primitives which had been drawn right before the next glClear().
-rw-r--r--src/gallium/drivers/r300/r300_flush.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_flush.c b/src/gallium/drivers/r300/r300_flush.c
index 20ca6905ad2..89a5f2b20cf 100644
--- a/src/gallium/drivers/r300/r300_flush.c
+++ b/src/gallium/drivers/r300/r300_flush.c
@@ -29,6 +29,8 @@ static void r300_flush(struct pipe_context* pipe,
struct r300_context* r300 = r300_context(pipe);
CS_LOCALS(r300);
+ draw_flush(r300->draw);
+
if (r300->dirty_hw) {
FLUSH_CS;
r300_emit_invariant_state(r300);