summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/cell
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/cell')
-rw-r--r--src/gallium/drivers/cell/ppu/cell_pipe_state.c4
1 files changed, 3 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 35e88f79b12..95bfc29fbeb 100644
--- a/src/gallium/drivers/cell/ppu/cell_pipe_state.c
+++ b/src/gallium/drivers/cell/ppu/cell_pipe_state.c
@@ -242,7 +242,9 @@ cell_set_sampler_texture(struct pipe_context *pipe,
draw_flush(cell->draw);
- cell->texture[sampler] = cell_texture(texture);
+ pipe_texture_reference(pipe,
+ (struct pipe_texture **) &cell->texture[sampler],
+ texture);
cell_update_texture_mapping(cell);