[Mesa-dev] [PATCH 5/6] st/mesa: Reset the index buffer before destroying the pipe context.

Keith Whitwell keith.whitwell at gmail.com
Mon Nov 1 05:06:29 PDT 2010


Tilman,

This looks good - it makes sense to also reset the constant buffers,
etc, at the same point...

Keith

On Sun, Oct 31, 2010 at 4:38 PM, Tilman Sauerbeck <tilman at code-monkey.de> wrote:
> Signed-off-by: Tilman Sauerbeck <tilman at code-monkey.de>
> ---
>  src/mesa/state_tracker/st_context.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c
> index 75fd695..b5ea6d0 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);
> --
> 1.7.3.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>


More information about the mesa-dev mailing list