aboutsummaryrefslogtreecommitdiff
path: root/src/graphics/font.c
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-10-27 18:31:23 +0200
committerdec05eba <dec05eba@protonmail.com>2021-10-28 13:19:14 +0200
commit1e3df56a5c91bce2ef7b03e31156721e2f76a063 (patch)
tree9fd85a16ab3726581ed4745e100114d2674d9769 /src/graphics/font.c
parent3489e8682089c71c42b30eca80d7230b2ecf44f8 (diff)
Move vertex buffer generation from init to first update, making init void
Diffstat (limited to 'src/graphics/font.c')
-rw-r--r--src/graphics/font.c2
1 files changed, 1 insertions, 1 deletions
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;