From 88acd47c99b0db090bd0481b897c3fcf5c261bea Mon Sep 17 00:00:00 2001 From: jupeyy Date: Mon, 7 May 2018 06:02:44 +0200 Subject: [PATCH] reset font texture at window resize --- src/engine/client/text.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/engine/client/text.cpp b/src/engine/client/text.cpp index 0d69554c6..952c1cb4d 100644 --- a/src/engine/client/text.cpp +++ b/src/engine/client/text.cpp @@ -1741,6 +1741,7 @@ public: m_Fonts[i]->m_TextureSkyline[j].m_CurHeightOfPixelColumn[k] = 0; mem_zero(m_Fonts[i]->m_TextureData[j], m_Fonts[i]->m_CurTextureDimensions[j] * m_Fonts[i]->m_CurTextureDimensions[j] * sizeof(unsigned char)); + Graphics()->LoadTextureRawSub(m_Fonts[i]->m_aTextures[j], 0, 0, m_Fonts[i]->m_CurTextureDimensions[j], m_Fonts[i]->m_CurTextureDimensions[j], CImageInfo::FORMAT_ALPHA, m_Fonts[i]->m_TextureData[j]); } m_Fonts[i]->InitFontSizes();