summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian <[email protected]>2008-02-20 15:13:33 -0700
committerBrian <[email protected]>2008-02-20 15:14:14 -0700
commite523ef72044d7f8137a298d60597b8913bae9145 (patch)
tree57f4b56caa9f3d8f5be24e5597668e3a7ac958a7
parent25ea1901b44107a5bc5351487e18d52d75df8ffd (diff)
cell: use pipe_texture_reference()
-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);