cell: use pipe_texture_reference()
authorBrian <brian.paul@tungstengraphics.com>
Wed, 20 Feb 2008 22:13:33 +0000 (15:13 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Wed, 20 Feb 2008 22:14:14 +0000 (15:14 -0700)
src/gallium/drivers/cell/ppu/cell_pipe_state.c

index 35e88f79b12d9d38efaceb1bcb42a77c47089bcf..95bfc29fbeb0316390f73102f03bc4b66ad52235 100644 (file)
@@ -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);