mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 15:02:39 +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)
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue