mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-02-07 16:31:07 +00:00
- now it's correct.
This commit is contained in:
parent
7ea1e8acee
commit
01e05c9b70
1 changed files with 3 additions and 3 deletions
|
@ -409,12 +409,12 @@ IHardwareTexture *FMaterial::GetLayer(int i, int translation, FTexture **pLayer)
|
||||||
|
|
||||||
if (layer && layer->UseType!=ETextureType::Null)
|
if (layer && layer->UseType!=ETextureType::Null)
|
||||||
{
|
{
|
||||||
IHardwareTexture *hwtex = layer->SystemTextures.GetHardwareTexture(0, mExpanded);
|
IHardwareTexture *hwtex = layer->SystemTextures.GetHardwareTexture(translation, mExpanded);
|
||||||
if (hwtex == nullptr)
|
if (hwtex == nullptr)
|
||||||
{
|
{
|
||||||
hwtex = screen->CreateHardwareTexture();
|
hwtex = screen->CreateHardwareTexture();
|
||||||
layer->SystemTextures.AddHardwareTexture(0, mExpanded, hwtex);
|
layer->SystemTextures.AddHardwareTexture(translation, mExpanded, hwtex);
|
||||||
hwtex = tex->SystemTextures.GetHardwareTexture(0, mExpanded);
|
hwtex = tex->SystemTextures.GetHardwareTexture(translation, mExpanded);
|
||||||
}
|
}
|
||||||
return hwtex;
|
return hwtex;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue