aboutsummaryrefslogtreecommitdiffstats
path: root/gb_gl.h
diff options
context:
space:
mode:
authorGravatar gingerBill 2016-05-07 23:53:12 +0100
committerGravatar gingerBill 2016-05-07 23:53:12 +0100
commitb61f116e63c5bced61218725ad695fb9f2b0dd13 (patch)
tree42aa9968f5cdfc56dc64b894ef0d97f0792efd39 /gb_gl.h
parentFix *_appendv bug (diff)
Basic Virtual Memory System and Dreadful Free List
Note: Windows only The Free list allocator is absolutely dreadful!
Diffstat (limited to 'gb_gl.h')
-rw-r--r--gb_gl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gb_gl.h b/gb_gl.h
index cbe2297..3ea5352 100644
--- a/gb_gl.h
+++ b/gb_gl.h
@@ -1765,7 +1765,7 @@ GB_COMPARE_PROC(gbgl__font_glyph_map_search_proc)
gb_inline gbglGlyphInfo *
gbgl_get_glyph_info(gbglFont *font, char32 codepoint, isize *out_index)
{
- isize index = gb_binary_search(font->glyph_map, font->glyph_count, gb_size_of(*font->glyph_map), &codepoint, gbgl__font_glyph_map_search_proc);
+ isize index = gb_binary_search_array(font->glyph_map, font->glyph_count, &codepoint, gbgl__font_glyph_map_search_proc);
if (index >= 0) {
GB_ASSERT(codepoint == font->glyph_map[index].codepoint);
if (out_index)