- now it's correct.

This commit is contained in:
Christoph Oelckers 2018-12-12 20:11:09 +01:00
parent 7ea1e8acee
commit 01e05c9b70

View file

@ -409,12 +409,12 @@ IHardwareTexture *FMaterial::GetLayer(int i, int translation, FTexture **pLayer)
if (layer && layer->UseType!=ETextureType::Null)
{
IHardwareTexture *hwtex = layer->SystemTextures.GetHardwareTexture(0, mExpanded);
IHardwareTexture *hwtex = layer->SystemTextures.GetHardwareTexture(translation, mExpanded);
if (hwtex == nullptr)
{
hwtex = screen->CreateHardwareTexture();
layer->SystemTextures.AddHardwareTexture(0, mExpanded, hwtex);
hwtex = tex->SystemTextures.GetHardwareTexture(0, mExpanded);
layer->SystemTextures.AddHardwareTexture(translation, mExpanded, hwtex);
hwtex = tex->SystemTextures.GetHardwareTexture(translation, mExpanded);
}
return hwtex;
}