- added some things from Raze to allow using the same code in both projects.

This commit is contained in:
Christoph Oelckers 2020-04-11 19:51:22 +02:00
commit 1e40b745d5
13 changed files with 189 additions and 41 deletions

View file

@ -718,19 +718,16 @@ FTextureBuffer FTexture::CreateTexBuffer(int translation, int flags)
//
//===========================================================================
bool FTexture::GetTranslucency()
bool FTexture::DetermineTranslucency()
{
if (bTranslucent == -1)
if (!bHasCanvas)
{
if (!bHasCanvas)
{
// This will calculate all we need, so just discard the result.
CreateTexBuffer(0);
}
else
{
bTranslucent = 0;
}
// This will calculate all we need, so just discard the result.
CreateTexBuffer(0);
}
else
{
bTranslucent = 0;
}
return !!bTranslucent;
}