From bbecce52f8f9db729810ed70ba1c4112d45cc583 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Fri, 23 Nov 2007 14:44:54 +0000 Subject: [PATCH] gallium: initialized draw element buffer to NULL --- src/mesa/pipe/draw/draw_context.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/pipe/draw/draw_context.c b/src/mesa/pipe/draw/draw_context.c index c7ad4c3d68c..d438c0be103 100644 --- a/src/mesa/pipe/draw/draw_context.c +++ b/src/mesa/pipe/draw/draw_context.c @@ -85,6 +85,7 @@ struct draw_context *draw_create( void ) draw->prim = ~0; /* != any of PIPE_PRIM_x */ draw_vertex_cache_invalidate( draw ); + draw_set_mapped_element_buffer( draw, 0, NULL ); return draw; } -- 2.30.2