From 1e3df56a5c91bce2ef7b03e31156721e2f76a063 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 27 Oct 2021 18:31:23 +0200 Subject: Move vertex buffer generation from init to first update, making init void --- src/graphics/font.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/graphics/font.c') diff --git a/src/graphics/font.c b/src/graphics/font.c index f55144a..669c2ac 100644 --- a/src/graphics/font.c +++ b/src/graphics/font.c @@ -111,7 +111,7 @@ void mgl_font_unload(mgl_font *self) { self->num_packed_chars = 0; } -int mgl_font_get_glyph(mgl_font *self, uint32_t codepoint, mgl_font_glyph *glyph) { +int mgl_font_get_glyph(const mgl_font *self, uint32_t codepoint, mgl_font_glyph *glyph) { stbtt_packedchar *packed_chars = self->packed_chars; if(codepoint >= self->num_packed_chars) return -1; -- cgit v1.2.3