st/mesa: Reset the index buffer before destroying the pipe context.
authorTilman Sauerbeck <tilman@code-monkey.de>
Sun, 31 Oct 2010 14:55:51 +0000 (15:55 +0100)
committerTilman Sauerbeck <tilman@code-monkey.de>
Tue, 2 Nov 2010 20:52:40 +0000 (21:52 +0100)
Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
src/mesa/state_tracker/st_context.c

index 75fd69540f34a54088bdb98c094baaea51c6be58..b5ea6d0f809a99162208797dd794e7564593f037 100644 (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);