From cf80537eb8b19444016ee89a19e948ccb3329877 Mon Sep 17 00:00:00 2001 From: Jupeyy Date: Tue, 1 Sep 2020 09:13:47 +0200 Subject: [PATCH] Fix entities text size not recreating new texture (fixes #2438) --- src/game/client/components/mapimages.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/game/client/components/mapimages.cpp b/src/game/client/components/mapimages.cpp index 2fb75ccb6..64381d98f 100644 --- a/src/game/client/components/mapimages.cpp +++ b/src/game/client/components/mapimages.cpp @@ -185,6 +185,10 @@ void CMapImages::SetTextureScale(int Scale) Graphics()->UnloadTexture(m_OverlayTopTexture); Graphics()->UnloadTexture(m_OverlayCenterTexture); + m_OverlayBottomTexture = IGraphics::CTextureHandle(); + m_OverlayTopTexture = IGraphics::CTextureHandle(); + m_OverlayCenterTexture = IGraphics::CTextureHandle(); + InitOverlayTextures(); } }