summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorCorbin Simpson <[email protected]>2009-10-22 00:21:08 -0700
committerCorbin Simpson <[email protected]>2009-10-22 00:21:08 -0700
commit511bd5f32b67f903b590f00f7ccf8132127ef2e4 (patch)
treeb9b7bd449cafab2952fecbee215cbf371cae501d /src/gallium
parent0a8cd4862c4f04308ab818077bab94417ffbf50b (diff)
r300g: Check for NULL Draw during flush.
Split from the fastpath WIP.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/r300/r300_flush.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/drivers/r300/r300_flush.c b/src/gallium/drivers/r300/r300_flush.c
index c222ea09b17..14a08241fc4 100644
--- a/src/gallium/drivers/r300/r300_flush.c
+++ b/src/gallium/drivers/r300/r300_flush.c
@@ -40,8 +40,10 @@ static void r300_flush(struct pipe_context* pipe,
CS_LOCALS(r300);
/* We probably need to flush Draw, but we may have been called from
- * within Draw. This feels kludgy, but it might be the best thing. */
- if (!r300->draw->flushing) {
+ * within Draw. This feels kludgy, but it might be the best thing.
+ *
+ * Of course, the best thing is to kill Draw with fire. :3 */
+ if (r300->draw && !r300->draw->flushing) {
draw_flush(r300->draw);
}