Bläddra i källkod

- removed some special handling for white masks that was a dirty fix, the new code should support it out of the box properly

Signed-off-by: Alexis Maiquez <almamu@almamu.com>
Alexis Maiquez 5 år sedan
förälder
incheckning
65a26c2b16
1 ändrade filer med 1 tillägg och 19 borttagningar
  1. 1 19
      src/WallpaperEngine/Irrlicht/CImageLoaderTEX.cpp

+ 1 - 19
src/WallpaperEngine/Irrlicht/CImageLoaderTEX.cpp

@@ -205,25 +205,7 @@ namespace WallpaperEngine::Irrlicht
         header = this->parseHeader (input);
         mipmap = *header->mipmaps.begin ();
 
-        // relevant shaders are currently drawing these masks opaque; return a transparent image instead
-        if (
-            input->getFileName ().find ("materials/flowmask.tex") != std::string::npos ||
-            input->getFileName ().find ("godrays_downsample2_mask") != std::string::npos ||
-            input->getFileName ().find ("materials/util/white.tex") != std::string::npos
-        )
-        {
-            this->m_context->getDevice ()->getLogger ()->log (
-                    "LOAD TEX: Skipping broken mask", input->getFileName ().c_str (), irr::ELL_INFORMATION
-            );
-
-            irr::u32 width = header->width;
-            irr::u32 height = header->height;
-
-            image = this->m_context->getDevice ()->getVideoDriver ()->createImage (
-                irr::video::ECF_A8R8G8B8, irr::core::dimension2d <irr::u32> (width, height)
-            );
-        }
-        else if (header->freeimageFormat == FREE_IMAGE_FORMAT::FIF_UNKNOWN)
+        if (header->freeimageFormat == FREE_IMAGE_FORMAT::FIF_UNKNOWN)
         {
             image = this->m_context->getDevice ()->getVideoDriver ()->createImage (
                     irr::video::ECF_A8R8G8B8, irr::core::dimension2d<irr::u32> (header->width, header->height)