From 01e05c9b70c4f67be901254f2ed6fa77740b834d Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 12 Dec 2018 20:11:09 +0100 Subject: [PATCH] - now it's correct. --- src/hwrenderer/textures/hw_material.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hwrenderer/textures/hw_material.cpp b/src/hwrenderer/textures/hw_material.cpp index b33efc190..fc2e3fa9b 100644 --- a/src/hwrenderer/textures/hw_material.cpp +++ b/src/hwrenderer/textures/hw_material.cpp @@ -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; }