diff options
-rw-r--r-- | src/mesa/pipe/draw/draw_context.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |