From: Tilman Sauerbeck Date: Sun, 31 Oct 2010 14:55:51 +0000 (+0100) Subject: st/mesa: Reset the index buffer before destroying the pipe context. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=965c8a3f1d0f5013359340cda72117faa8960f91;p=mesa.git st/mesa: Reset the index buffer before destroying the pipe context. Signed-off-by: Tilman Sauerbeck --- diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c index 75fd69540f3..b5ea6d0f809 100644 --- a/src/mesa/state_tracker/st_context.c +++ b/src/mesa/state_tracker/st_context.c @@ -236,6 +236,8 @@ void st_destroy_context( struct st_context *st ) } pipe_surface_reference(&st->state.framebuffer.zsbuf, NULL); + pipe->set_index_buffer(pipe, NULL); + _mesa_delete_program_cache(st->ctx, st->pixel_xfer.cache); _vbo_DestroyContext(st->ctx);