gallium: use pipe_texture_reference() in sp_tile_cache_set_texture()

This commit is contained in:
Brian
2008-02-20 11:15:59 -07:00
parent 49c3f3b537
commit 22a0b85eae
3 changed files with 6 additions and 4 deletions

View File

@@ -212,14 +212,15 @@ sp_tile_cache_unmap_surfaces(struct softpipe_tile_cache *tc)
* Specify the texture to cache.
*/
void
sp_tile_cache_set_texture(struct softpipe_tile_cache *tc,
sp_tile_cache_set_texture(struct pipe_context *pipe,
struct softpipe_tile_cache *tc,
struct pipe_texture *texture)
{
uint i;
assert(!tc->surface);
tc->texture = texture;
pipe_texture_reference(pipe, &tc->texture, texture);
if (tc->tex_surf_map) {
pipe_surface_unmap(tc->tex_surf);