r300g: Check for NULL Draw during flush.

Split from the fastpath WIP.
This commit is contained in:
Corbin Simpson
2009-10-22 00:21:08 -07:00
parent 0a8cd4862c
commit 511bd5f32b
+4 -2
View File
@@ -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);
}