diff options
author | José Fonseca <[email protected]> | 2012-07-06 18:30:25 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2012-07-06 18:35:32 +0100 |
commit | fe602da63f0a65a30d3476c756c4a201ea88b3c5 (patch) | |
tree | aa8012780941882fb9e47f7886e75e52521cc41b /src/gallium/drivers | |
parent | 04d29afb8b7329d66a1e9efc9fb55eb1adffa0df (diff) |
galahad: Point to the galahad objects from the galahad sampler view.
And not the wraped driver's objects.
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/galahad/glhd_objects.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/galahad/glhd_objects.c b/src/gallium/drivers/galahad/glhd_objects.c index b50d85655e8..badd2e1c1b7 100644 --- a/src/gallium/drivers/galahad/glhd_objects.c +++ b/src/gallium/drivers/galahad/glhd_objects.c @@ -127,8 +127,8 @@ galahad_sampler_view_create(struct galahad_context *glhd_context, glhd_view->base = *view; glhd_view->base.reference.count = 1; glhd_view->base.texture = NULL; - pipe_resource_reference(&glhd_view->base.texture, glhd_resource->resource); - glhd_view->base.context = glhd_context->pipe; + pipe_resource_reference(&glhd_view->base.texture, &glhd_resource->base); + glhd_view->base.context = &glhd_context->base; glhd_view->sampler_view = view; return &glhd_view->base; |