Skip to content

Commit

Permalink
- now it's correct.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Dec 12, 2018
1 parent 7ea1e8a commit 01e05c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/hwrenderer/textures/hw_material.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit 01e05c9

Please sign in to comment.