summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/cell
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-07-26 20:49:35 -0600
committerBrian Paul <brianp@vmware.com>2010-07-26 20:49:35 -0600
commit0315c00f5897eb443254323be2b7b5ca213fbef2 (patch)
tree299ed4440e4bd0b791b67570a5de8f96405aa616 /src/gallium/drivers/cell
parent2a8021667de68c6ee2723b52a27dd980c1ca5602 (diff)
cell: fix segfault when freeing samplers
Diffstat (limited to 'src/gallium/drivers/cell')
-rw-r--r--src/gallium/drivers/cell/ppu/cell_pipe_state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/cell/ppu/cell_pipe_state.c b/src/gallium/drivers/cell/ppu/cell_pipe_state.c
index 03f84d295b..223adda48f 100644
--- a/src/gallium/drivers/cell/ppu/cell_pipe_state.c
+++ b/src/gallium/drivers/cell/ppu/cell_pipe_state.c
@@ -281,7 +281,7 @@ cell_set_fragment_sampler_views(struct pipe_context *pipe,
struct pipe_resource *new_tex = new_view ? new_view->texture : NULL;
pipe_sampler_view_reference(&cell->fragment_sampler_views[i],
- views[i]);
+ new_view);
pipe_resource_reference((struct pipe_resource **) &cell->texture[i],
(struct pipe_resource *) new_tex);