Allocator memes
This commit is contained in:
@@ -107,11 +107,11 @@ Glyph *GetGlyph(Font *font, uint32_t codepoint) {
|
||||
}
|
||||
Font CreateFont(Atlas *atlas, int32_t size, String path) {
|
||||
Allocator allocator = GetSystemAllocator();
|
||||
Scratch scratch;
|
||||
Scratch scratch;
|
||||
|
||||
Font result = {};
|
||||
Font result = {};
|
||||
result.glyphs.allocator = allocator;
|
||||
String file = ReadFile(scratch, path);
|
||||
String file = ReadFile(scratch, path);
|
||||
if (file.len == 0) {
|
||||
file = BakedInFont;
|
||||
Assert(file.len != 0);
|
||||
|
||||
Reference in New Issue
Block a user