From 3fb88639af09af2f77203fd633c19ea736a7c0e5 Mon Sep 17 00:00:00 2001 From: Brian Date: Thu, 11 Oct 2007 11:09:36 -0600 Subject: Init draw->prim = ~0 We weren't rendering correctly if the first thing drawn was a point (PRIM_MODE_POINT=0). --- src/mesa/pipe/draw/draw_context.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- cgit v1.2.3