st/mesa: remove unused st_context::default_texture
authorBrian Paul <brianp@vmware.com>
Tue, 10 May 2016 19:01:26 +0000 (13:01 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 18 May 2016 01:20:36 +0000 (19:20 -0600)
The code which used this was removed quite a while ago.

Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/mesa/state_tracker/st_context.c
src/mesa/state_tracker/st_context.h

index f5a6f8598ca063e1c475c242f33484e1c19cabe4..2484a06bc0ef33fcd2406470efc4f9f0eb17cd79 100644 (file)
@@ -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);
index ba51a9c624818c7f1feb39d19b2f9c22928d54fb..47d33013cbc89d7e9e7f78a1442938d272294d54 100644 (file)
@@ -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;