gallium: use screen->tex_surface_release()
authorBrian Paul <brian.paul@tungstengraphics.com>
Thu, 1 May 2008 21:08:05 +0000 (15:08 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 1 May 2008 21:08:05 +0000 (15:08 -0600)
src/mesa/state_tracker/st_texture.c

index 482a054f64c171284e5490e78730ec2ebba2ed60..d6268fc80ca350d3ae1eea5b909417499cb65c89 100644 (file)
@@ -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);
    }
 }