- 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

@ -111,7 +111,6 @@ void FTextureManager::DeleteAll()
// main reason to call this outside of the destruction code.
//
//==========================================================================
void DeleteSoftwareTexture(FSoftwareTexture* swtex);
void FTextureManager::FlushAll()
{
@ -120,7 +119,7 @@ void FTextureManager::FlushAll()
for (int j = 0; j < 2; j++)
{
Textures[i].Texture->CleanHardwareTextures(true, true);
DeleteSoftwareTexture(Textures[i].Texture->SoftwareTexture);
delete Textures[i].Texture->SoftwareTexture;
Textures[i].Texture->SoftwareTexture = nullptr;
}
}