mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-09-14 13:56:48 +08:00
- 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>
This commit is contained in:
parent
4309ca722d
commit
65a26c2b16
@ -205,25 +205,7 @@ namespace WallpaperEngine::Irrlicht
|
|||||||
header = this->parseHeader (input);
|
header = this->parseHeader (input);
|
||||||
mipmap = *header->mipmaps.begin ();
|
mipmap = *header->mipmaps.begin ();
|
||||||
|
|
||||||
// relevant shaders are currently drawing these masks opaque; return a transparent image instead
|
if (header->freeimageFormat == FREE_IMAGE_FORMAT::FIF_UNKNOWN)
|
||||||
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)
|
|
||||||
{
|
{
|
||||||
image = this->m_context->getDevice ()->getVideoDriver ()->createImage (
|
image = this->m_context->getDevice ()->getVideoDriver ()->createImage (
|
||||||
irr::video::ECF_A8R8G8B8, irr::core::dimension2d<irr::u32> (header->width, header->height)
|
irr::video::ECF_A8R8G8B8, irr::core::dimension2d<irr::u32> (header->width, header->height)
|
||||||
|
Loading…
Reference in New Issue
Block a user