mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-12 09:06:55 -04:00
.. and fix 'position:' textatlas leaking. Finally no more crashing.
This commit is contained in:
parent
4deba8e0d4
commit
9afde7d0aa
@ -293,6 +293,7 @@ void TextAtlas_Make(struct TextAtlas* atlas, const String* chars, struct FontDes
|
|||||||
Bitmap bmp;
|
Bitmap bmp;
|
||||||
int i, charWidth;
|
int i, charWidth;
|
||||||
|
|
||||||
|
Gfx_DeleteTexture(&atlas->tex.ID);
|
||||||
DrawTextArgs_Make(&args, prefix, font, true);
|
DrawTextArgs_Make(&args, prefix, font, true);
|
||||||
width = Drawer2D_TextWidth(&args);
|
width = Drawer2D_TextWidth(&args);
|
||||||
atlas->offset = width;
|
atlas->offset = width;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user