diff --git a/src/hwrenderer/textures/hw_material.h b/src/hwrenderer/textures/hw_material.h index 581368b55b..c35b23c08f 100644 --- a/src/hwrenderer/textures/hw_material.h +++ b/src/hwrenderer/textures/hw_material.h @@ -76,7 +76,7 @@ public: } bool isMasked() const { - return !!sourcetex->bMasked; + return sourcetex->bMasked; } bool isExpanded() const { diff --git a/src/textures/texture.cpp b/src/textures/texture.cpp index 75b7e5e7d2..85b57798df 100644 --- a/src/textures/texture.cpp +++ b/src/textures/texture.cpp @@ -1351,6 +1351,11 @@ bool FTexture::ProcessData(unsigned char * buffer, int w, int h, bool ispatch) if (bMasked) { bMasked = SmoothEdges(buffer, w, h); + if (!bMasked) + { + auto stex = GetRedirect(); + stex->bMasked = false; // also clear in the base texture if there is a redirection. + } if (bMasked && !ispatch) FindHoles(buffer, w, h); } return true;