summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2008-02-20 15:13:33 -0700
committerBrian <brian.paul@tungstengraphics.com>2008-02-20 15:14:14 -0700
commite523ef72044d7f8137a298d60597b8913bae9145 (patch)
tree57f4b56caa9f3d8f5be24e5597668e3a7ac958a7 /src
parent25ea1901b44107a5bc5351487e18d52d75df8ffd (diff)
cell: use pipe_texture_reference()
Diffstat (limited to 'src')
-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 35e88f79b1..95bfc29fbe 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);