r300-gallium: Add a draw_flush() to r300_flush().
authorMathias Gottschlag <mathias-go@web.de>
Sun, 26 Apr 2009 10:04:35 +0000 (12:04 +0200)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Sun, 26 Apr 2009 17:01:17 +0000 (10:01 -0700)
This fixes some missing primitives which had been drawn right before the next glClear().

src/gallium/drivers/r300/r300_flush.c

index 20ca6905ad25d05c95be7204c153aba29f5dc4ff..89a5f2b20cf188ee8a8f9b7251a98640a2f4bff3 100644 (file)
@@ -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);