draw: implement pipeline statistics in the draw module
[mesa.git] / src / gallium / auxiliary / draw / draw_pt_vsplit.c
index 0fed057efbe7fa8ee1b86ae074443a09e1dba1af..c2d2a8fd555a8ad2f8f5acf9b5bd8f462cfe7f8c 100644 (file)
@@ -182,7 +182,7 @@ static void vsplit_flush(struct draw_pt_front_end *frontend, unsigned flags)
 {
    struct vsplit_frontend *vsplit = (struct vsplit_frontend *) frontend;
 
-   if (!(flags & DRAW_FLUSH_BACKEND)) {
+   if (flags & DRAW_FLUSH_STATE_CHANGE) {
       vsplit->middle->finish(vsplit->middle);
       vsplit->middle = NULL;
    }