From 9afde7d0aa419e4a917b62faa76b4f4f5957697c Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Tue, 28 Jul 2020 19:45:21 +1000 Subject: [PATCH] .. and fix 'position:' textatlas leaking. Finally no more crashing. --- src/Gui.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Gui.c b/src/Gui.c index 147c9e75e..f1651a8ef 100644 --- a/src/Gui.c +++ b/src/Gui.c @@ -293,6 +293,7 @@ void TextAtlas_Make(struct TextAtlas* atlas, const String* chars, struct FontDes Bitmap bmp; int i, charWidth; + Gfx_DeleteTexture(&atlas->tex.ID); DrawTextArgs_Make(&args, prefix, font, true); width = Drawer2D_TextWidth(&args); atlas->offset = width;