gallium/noop: fix sampler views
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
7448342a1f
commit
3d8259194d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue