summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/noop/noop_state.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/noop/noop_state.c')
-rw-r--r--src/gallium/drivers/noop/noop_state.c3
1 files changed, 3 insertions, 0 deletions
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;