From: Brian Paul Date: Tue, 20 May 2008 21:12:26 +0000 (-0600) Subject: gallium: replace assignment with pipe_texture_reference() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7899ecdd6502a323b052f9ad4acd23cbb9ba88db;p=mesa.git gallium: replace assignment with pipe_texture_reference() --- diff --git a/src/mesa/state_tracker/st_gen_mipmap.c b/src/mesa/state_tracker/st_gen_mipmap.c index 1a0e19c2f92..047743689dc 100644 --- a/src/mesa/state_tracker/st_gen_mipmap.c +++ b/src/mesa/state_tracker/st_gen_mipmap.c @@ -197,6 +197,6 @@ st_generate_mipmap(GLcontext *ctx, GLenum target, dstImage->TexFormat = srcImage->TexFormat; stImage = (struct st_texture_image *) dstImage; - stImage->pt = pt; + pipe_texture_reference(&stImage->pt, pt); } }