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 f5a6f85..2484a06 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 ba51a9c..47d3301 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;