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;