From: Brian Date: Thu, 11 Oct 2007 17:09:36 +0000 (-0600) Subject: Init draw->prim = ~0 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3fb88639af09af2f77203fd633c19ea736a7c0e5;p=mesa.git Init draw->prim = ~0 We weren't rendering correctly if the first thing drawn was a point (PRIM_MODE_POINT=0). --- diff --git a/src/mesa/pipe/draw/draw_context.c b/src/mesa/pipe/draw/draw_context.c index 44e770f364d..e2521489037 100644 --- a/src/mesa/pipe/draw/draw_context.c +++ b/src/mesa/pipe/draw/draw_context.c @@ -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;