From 134460bae6ee0b40316c85aff87e0f989db78a85 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 12 Dec 2018 20:16:02 +0100 Subject: [PATCH] - one final fix. --- src/hwrenderer/textures/hw_material.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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;