st/mesa: expand glDrawPixels cache to handle multiple images
[mesa.git] / src / mesa / state_tracker / st_context.c
index 3ba484792662079320f13265aae7bbe8e41d9db1..eb6c4588197c3211017d520bb1a9cba2f91b30df 100644 (file)
@@ -273,10 +273,6 @@ st_destroy_context_priv(struct st_context *st, bool destroy_pipe)
       }
    }
 
-   /* free glDrawPixels cache data */
-   free(st->drawpix_cache.image);
-   pipe_resource_reference(&st->drawpix_cache.texture, NULL);
-
    /* free glReadPixels cache data */
    st_invalidate_readpix_cache(st);