rbug: fix a crash in sampler_view_destroy caused by incorrect context
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
This commit is contained in:
parent
ba81a3784b
commit
ddcbe9c526
1 changed files with 1 additions and 1 deletions
|
|
@ -137,7 +137,7 @@ rbug_sampler_view_create(struct rbug_context *rb_context,
|
|||
rb_view->base.reference.count = 1;
|
||||
rb_view->base.texture = NULL;
|
||||
pipe_resource_reference(&rb_view->base.texture, &rb_resource->base);
|
||||
rb_view->base.context = rb_context->pipe;
|
||||
rb_view->base.context = &rb_context->base;
|
||||
rb_view->sampler_view = view;
|
||||
|
||||
return &rb_view->base;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue