mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-16 06:48:31 +02:00
r600g: fix incorrect state naming in pipe_sampler vs pipe_sampler_view
fixes problems in valgrind with uninitialised values.
This commit is contained in:
parent
5ad74779ce
commit
36192b772e
1 changed files with 1 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ static struct pipe_sampler_view *r600_create_sampler_view(struct pipe_context *c
|
|||
struct r600_context *rctx = r600_context(ctx);
|
||||
struct r600_context_state *rstate;
|
||||
|
||||
rstate = r600_context_state(rctx, pipe_sampler_type, state);
|
||||
rstate = r600_context_state(rctx, pipe_sampler_view_type, state);
|
||||
pipe_reference(NULL, &texture->reference);
|
||||
rstate->state.sampler_view.texture = texture;
|
||||
rstate->state.sampler_view.reference.count = 1;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue