|
|
@@ -93,9 +93,6 @@ void compile(Filesystem& fs, const char* resource_path, File* out_file)
|
|
|
array::push_back(m_glyphs, data);
|
|
|
}
|
|
|
|
|
|
- fs.close(file);
|
|
|
- default_allocator().deallocate(buf);
|
|
|
-
|
|
|
h.material.id = string::murmur2_64(material_name.c_str(), string::strlen(material_name.c_str()), 0);
|
|
|
h.num_glyphs = array::size(m_glyphs);
|
|
|
h.texture_size = size.to_int();
|
|
|
@@ -107,6 +104,9 @@ void compile(Filesystem& fs, const char* resource_path, File* out_file)
|
|
|
{
|
|
|
out_file->write((char*) array::begin(m_glyphs), sizeof(FontGlyphData) * h.num_glyphs);
|
|
|
}
|
|
|
+
|
|
|
+ fs.close(file);
|
|
|
+ default_allocator().deallocate(buf);
|
|
|
}
|
|
|
|
|
|
} // namespace font_resource
|