invert draw_vertex_cache_check_space()
authorBrian <brian.paul@tungstengraphics.com>
Fri, 21 Sep 2007 18:37:13 +0000 (12:37 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Fri, 21 Sep 2007 18:37:13 +0000 (12:37 -0600)
src/mesa/pipe/draw/draw_prim.c

index a90d1df7f9f7bee9e88e6b890cc526491abfe4d8..e82e48b90b8f3bf0f1868f108d3e6977e0e4fe83 100644 (file)
@@ -107,7 +107,7 @@ static struct prim_header *get_queued_prim( struct draw_context *draw,
                                            unsigned nr_verts )
 {
    if (draw->pq.queue_nr + 1 >= PRIM_QUEUE_LENGTH ||
-       draw_vertex_cache_check_space( draw, nr_verts )) 
+       !draw_vertex_cache_check_space( draw, nr_verts )) 
    {
       draw_flush( draw );
    }