diff options
author | Marek Olšák <[email protected]> | 2014-08-17 01:36:11 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2014-08-19 12:20:18 +0200 |
commit | ddcbe9c526060c91c3944ccdd5c8d4f70180d988 (patch) | |
tree | 24656e01b5b5ce0af4c7074f0ade95a2e39fe9ed /src/gallium/drivers/rbug | |
parent | ba81a3784b451d9cdddd7af2bb15f54bfdfcba42 (diff) |
rbug: fix a crash in sampler_view_destroy caused by incorrect context
Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/gallium/drivers/rbug')
-rw-r--r-- | src/gallium/drivers/rbug/rbug_objects.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/rbug/rbug_objects.c b/src/gallium/drivers/rbug/rbug_objects.c index c64b14c1832..2d80164d3bf 100644 --- a/src/gallium/drivers/rbug/rbug_objects.c +++ b/src/gallium/drivers/rbug/rbug_objects.c @@ -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; |