gallium: initialized draw element buffer to NULL
authorKeith Whitwell <keith@tungstengraphics.com>
Fri, 23 Nov 2007 14:44:54 +0000 (14:44 +0000)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Sun, 9 Dec 2007 14:05:12 +0000 (14:05 +0000)
src/mesa/pipe/draw/draw_context.c

index c7ad4c3..d438c0b 100644 (file)
@@ -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;
 }