gallium: replace assignment with pipe_texture_reference()
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 20 May 2008 21:12:26 +0000 (15:12 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 20 May 2008 21:12:26 +0000 (15:12 -0600)
src/mesa/state_tracker/st_gen_mipmap.c

index 1a0e19c2f92ae2008dd735e86147726cf8cf9a55..047743689dcfde987cc75aa2ce4a9ddd81af1403 100644 (file)
@@ -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);
    }
 }