rbug: fix a crash in sampler_view_destroy caused by incorrect context
authorMarek Olšák <marek.olsak@amd.com>
Sat, 16 Aug 2014 23:36:11 +0000 (01:36 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 19 Aug 2014 10:20:18 +0000 (12:20 +0200)
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/drivers/rbug/rbug_objects.c

index c64b14c183287279b8937d018a6d9b29342a7a9e..2d80164d3bf1c035c4534d800aefffb36a43f505 100644 (file)
@@ -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;