소스 검색

~ Fixed oversight on texture loading when determining container format

Signed-off-by: Alexis Maiquez <almamu@almamu.com>
Alexis Maiquez 7 년 전
부모
커밋
8ebc8c8841
1개의 변경된 파일과 1개의 추가작업 그리고 1개의 파일을 삭제
  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));