]> granicus.if.org Git - imagemagick/commitdiff
Make sure the mipmaps have the same alpha trait #1405.
authorDirk Lemstra <dirk@lemstra.org>
Tue, 4 Dec 2018 21:33:33 +0000 (22:33 +0100)
committerDirk Lemstra <dirk@lemstra.org>
Tue, 4 Dec 2018 21:33:33 +0000 (22:33 +0100)
coders/dds.c

index 44930e6376d4fd07cee3527b7132398ab035e218..77b3efb9caaa97db93f73620f11f2118fe8bdbcc 100644 (file)
@@ -1962,8 +1962,9 @@ static MagickBooleanType ReadMipmaps(const ImageInfo *image_info,Image *image,
       for (i = 1; (i < (ssize_t) dds_info->mipmapcount) && w && h; i++)
       {
         AcquireNextImage(image_info,image,exception);
-        if (GetNextImageInList(image) == (Image *) NULL)
+        if (image->next == (Image *) NULL)
           return(MagickFalse);
+        image->next->alpha_trait=image->alpha_trait;
         image=SyncNextImageInList(image);
         status=SetImageExtent(image,w,h,exception);
         if (status == MagickFalse)