From 3d8259194de92a6b690ca522b48bdd0108b07a02 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Thu, 8 Jun 2017 02:26:28 +0200 Subject: gallium/noop: fix sampler views MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Nicolai Hähnle --- src/gallium/drivers/noop/noop_state.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gallium/drivers') 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; -- cgit v1.2.3