From: Brian Paul Date: Thu, 1 May 2008 21:08:05 +0000 (-0600) Subject: gallium: use screen->tex_surface_release() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4687272b20f92184a838fe2187857162a0a90a06;p=mesa.git gallium: use screen->tex_surface_release() --- diff --git a/src/mesa/state_tracker/st_texture.c b/src/mesa/state_tracker/st_texture.c index 482a054f64c..d6268fc80ca 100644 --- a/src/mesa/state_tracker/st_texture.c +++ b/src/mesa/state_tracker/st_texture.c @@ -327,7 +327,7 @@ st_texture_image_copy(struct pipe_context *pipe, 0, 0, /* srcX, Y */ width, copyHeight); - pipe_surface_reference(&dst_surface, NULL); - pipe_surface_reference(&src_surface, NULL); + screen->tex_surface_release(screen, &src_surface); + screen->tex_surface_release(screen, &dst_surface); } }