diff options
author | Marek Olšák <[email protected]> | 2017-06-08 02:26:28 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-06-12 18:24:37 +0200 |
commit | 3d8259194de92a6b690ca522b48bdd0108b07a02 (patch) | |
tree | 0fbc27d8b485b331fc39a9bfb06c8a1cbe5e09c1 /src | |
parent | 7448342a1f51f928611f3f7aefa7f2180aa05ecf (diff) |
gallium/noop: fix sampler views
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/noop/noop_state.c | 3 |
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; |