[Mesa-dev] [PATCH] st/mesa: remove unused st_context::default_texture

Ilia Mirkin imirkin at alum.mit.edu
Thu May 12 17:42:08 UTC 2016


Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>

On Thu, May 12, 2016 at 1:40 PM, Brian Paul <brianp at vmware.com> wrote:
> The code which used this was removed quite a while ago.
> ---
>  src/mesa/state_tracker/st_context.c | 5 -----
>  src/mesa/state_tracker/st_context.h | 2 --
>  2 files changed, 7 deletions(-)
>
> diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c
> index f5a6f85..2484a06 100644
> --- a/src/mesa/state_tracker/st_context.c
> +++ b/src/mesa/state_tracker/st_context.c
> @@ -171,11 +171,6 @@ st_destroy_context_priv(struct st_context *st)
>        }
>     }
>
> -   if (st->default_texture) {
> -      st->ctx->Driver.DeleteTexture(st->ctx, st->default_texture);
> -      st->default_texture = NULL;
> -   }
> -
>     u_upload_destroy(st->uploader);
>     if (st->indexbuf_uploader) {
>        u_upload_destroy(st->indexbuf_uploader);
> diff --git a/src/mesa/state_tracker/st_context.h b/src/mesa/state_tracker/st_context.h
> index ba51a9c..47d3301 100644
> --- a/src/mesa/state_tracker/st_context.h
> +++ b/src/mesa/state_tracker/st_context.h
> @@ -194,8 +194,6 @@ struct st_context
>     struct st_basic_variant *tep_variant;
>     struct st_basic_variant *cp_variant;
>
> -   struct gl_texture_object *default_texture;
> -
>     struct {
>        struct pipe_resource *pixelmap_texture;
>        struct pipe_sampler_view *pixelmap_sampler_view;
> --
> 1.9.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list