[fix][error] C++ style comments are not allowed in ISO C90

This commit is contained in:
Wu Han 2020-11-10 11:10:32 +00:00
parent d2550448f3
commit ec697f3123
1 changed files with 4 additions and 2 deletions

View File

@ -16576,8 +16576,10 @@ nk_font_bake(struct nk_font_baker *baker, void *image_memory, int width, int hei
dst_font->ascent = ((float)unscaled_ascent * font_scale);
dst_font->descent = ((float)unscaled_descent * font_scale);
dst_font->glyph_offset = glyph_n;
// Need to zero this, or it will carry over from a previous
// bake, and cause a segfault when accessing glyphs[].
/*
Need to zero this, or it will carry over from a previous
bake, and cause a segfault when accessing glyphs[].
*/
dst_font->glyph_count = 0;
}