diff --git a/src/hwrenderer/textures/hw_material.cpp b/src/hwrenderer/textures/hw_material.cpp index fc2e3fa9b..d24f0d69a 100644 --- a/src/hwrenderer/textures/hw_material.cpp +++ b/src/hwrenderer/textures/hw_material.cpp @@ -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;