From: Marek Olšák Date: Thu, 8 Jun 2017 00:26:28 +0000 (+0200) Subject: gallium/noop: fix sampler views X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3d8259194de92a6b690ca522b48bdd0108b07a02;p=mesa.git gallium/noop: fix sampler views Reviewed-by: Nicolai Hähnle --- diff --git a/src/gallium/drivers/noop/noop_state.c b/src/gallium/drivers/noop/noop_state.c index 46d99abe1a4..80cfae8ad49 100644 --- a/src/gallium/drivers/noop/noop_state.c +++ b/src/gallium/drivers/noop/noop_state.c @@ -76,7 +76,10 @@ static struct pipe_sampler_view *noop_create_sampler_view(struct pipe_context *c if (!sampler_view) return NULL; + /* initialize base object */ + *sampler_view = *state; + sampler_view->texture = NULL; pipe_resource_reference(&sampler_view->texture, texture); pipe_reference_init(&sampler_view->reference, 1); sampler_view->context = ctx;