From: Brian Date: Wed, 20 Feb 2008 22:13:33 +0000 (-0700) Subject: cell: use pipe_texture_reference() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e523ef72044d7f8137a298d60597b8913bae9145;p=mesa.git cell: use pipe_texture_reference() --- 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);