mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
- fixed: FTexture::SmoothEdges must forward its result to the base texture in case a redirection is in effect.
Both need the bMasked flag, or some code will think that the texture is not fully opaque if no holes were found.
This commit is contained in:
parent
08fe9c375b
commit
45ef7bca4f
2 changed files with 6 additions and 1 deletions
|
@ -76,7 +76,7 @@ public:
|
|||
}
|
||||
bool isMasked() const
|
||||
{
|
||||
return !!sourcetex->bMasked;
|
||||
return sourcetex->bMasked;
|
||||
}
|
||||
bool isExpanded() const
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue