From: Brian Paul Date: Tue, 10 May 2016 19:01:26 +0000 (-0600) Subject: st/mesa: remove unused st_context::default_texture X-Git-Tag: android-x86-6.0-r1~968 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=fe430b0310ed0f2f52d45b149e72b7802a6f2cad;p=android-x86%2Fexternal-mesa.git st/mesa: remove unused st_context::default_texture The code which used this was removed quite a while ago. Reviewed-by: Ilia Mirkin Reviewed-by: Sinclair Yeh Reviewed-by: Charmaine Lee --- diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c index f5a6f8598ca..2484a06bc0e 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 ba51a9c6248..47d33013cbc 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;