gallium/noop: fix sampler views

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
Marek Olšák 2017-06-08 02:26:28 +02:00
parent 7448342a1f
commit 3d8259194d
1 changed files with 3 additions and 0 deletions

View File

@ -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;