st/mesa: Reset the index buffer before destroying the pipe context.

Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
This commit is contained in:
Tilman Sauerbeck
2010-10-31 15:55:51 +01:00
parent 52ba68d0b0
commit 965c8a3f1d
+2
View File
@@ -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);