Init draw->prim = ~0

We weren't rendering correctly if the first thing drawn was a point (PRIM_MODE_POINT=0).
This commit is contained in:
Brian 2007-10-11 11:09:36 -06:00
parent afd6bd3cb0
commit 3fb88639af

View 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;