- one final fix.

This commit is contained in:
Christoph Oelckers 2018-12-12 20:16:02 +01:00
parent 01e05c9b70
commit 134460bae6

View file

@ -414,8 +414,7 @@ IHardwareTexture *FMaterial::GetLayer(int i, int translation, FTexture **pLayer)
{
hwtex = screen->CreateHardwareTexture();
layer->SystemTextures.AddHardwareTexture(translation, mExpanded, hwtex);
hwtex = tex->SystemTextures.GetHardwareTexture(translation, mExpanded);
}
}
return hwtex;
}
return nullptr;