- add the hardware texture container to FTexture.

Currently it does not use the translated entries yet.

# Conflicts:
#	src/hwrenderer/textures/hw_material.cpp
This commit is contained in:
Christoph Oelckers 2018-12-12 02:28:42 +01:00
commit fb6ee5046c
5 changed files with 24 additions and 19 deletions

View file

@ -178,9 +178,6 @@ FTexture::~FTexture ()
{
if (Material[i] != nullptr) delete Material[i];
Material[i] = nullptr;
if (SystemTexture[i] != nullptr) delete SystemTexture[i];
SystemTexture[i] = nullptr;
}
if (SoftwareTexture != nullptr)
{
@ -793,7 +790,7 @@ FWrapperTexture::FWrapperTexture(int w, int h, int bits)
Format = bits;
UseType = ETextureType::SWCanvas;
bNoCompress = true;
SystemTexture[0] = screen->CreateHardwareTexture();
SystemTextures.AddHardwareTexture(0, false, screen->CreateHardwareTexture());
}
//===========================================================================