Init draw->prim = ~0
authorBrian <brian.paul@tungstengraphics.com>
Thu, 11 Oct 2007 17:09:36 +0000 (11:09 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Thu, 11 Oct 2007 17:09:36 +0000 (11:09 -0600)
We weren't rendering correctly if the first thing drawn was a point (PRIM_MODE_POINT=0).

src/mesa/pipe/draw/draw_context.c

index 44e770f364df2943c48896c85e6ef5a5c38c064e..e2521489037fefb438296ba1438963a52bbf0bc9 100644 (file)
@@ -81,6 +81,8 @@ struct draw_context *draw_create( void )
    draw->attrib_front1 = -1;
    draw->attrib_back1 = -1;
 
+   draw->prim = ~0; /* != any of PIPE_PRIM_x */
+
    draw_vertex_cache_invalidate( draw );
 
    return draw;