- 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:
parent
e6b4c63b99
commit
fb6ee5046c
5 changed files with 24 additions and 19 deletions
|
|
@ -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());
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue