- decoupled the software renderer entirely from FTexture - it will only look at FSoftwareTexture now, all access to the texture manager has been wrapped.

This commit is contained in:
Christoph Oelckers 2020-04-14 00:42:13 +02:00
commit 9593cb56ae
23 changed files with 170 additions and 162 deletions

View file

@ -114,13 +114,7 @@ namespace swrenderer
}
else // regular flat
{
FTexture *ttex = TexMan.GetPalettedTexture(picnum, true);
if (!ttex->isValid())
{
return;
}
FSoftwareTexture *tex = ttex->GetSoftwareTexture();
auto tex = GetPalettedSWTexture(picnum, true);
if (!masked && !additive)
{ // If we're not supposed to see through this plane, draw it opaque.