galahad: Point to the galahad objects from the galahad sampler view.

And not the wraped driver's objects.
This commit is contained in:
José Fonseca 2012-07-06 18:30:25 +01:00
parent 04d29afb8b
commit fe602da63f
1 changed files with 2 additions and 2 deletions

View File

@ -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;