Sfoglia il codice sorgente

~ Fixed oversight on texture loading when determining container format

Signed-off-by: Alexis Maiquez <almamu@almamu.com>
Alexis Maiquez 7 anni fa
parent
commit
8ebc8c8841
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      wallpaperengine/irr/CImageLoaderTEX.cpp

+ 1 - 1
wallpaperengine/irr/CImageLoaderTEX.cpp

@@ -156,7 +156,7 @@ namespace irr {
                 input->read (decompressedBuffer, mipmap_uncompressed_size);
             }
 
-            if (containerVersion == 2 || containerVersion == 1)
+            if (imageFormat == FREE_IMAGE_FORMAT::FIF_UNKNOWN)
             {
                 image = wp::irrlicht::driver->createImage (ECF_A8R8G8B8, irr::core::dimension2d<u32> (width, height));