mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
fix: Crash when loading subpixel font didn't work
This commit is contained in:
@@ -102,7 +102,8 @@ namespace hex::fonts {
|
||||
FT_Done_Face(face);
|
||||
}
|
||||
fontAtlas->getAtlas()->FontBuilderFlags |= ImGuiFreeTypeBuilderFlags_SubPixel;
|
||||
fontAtlas->build();
|
||||
if (!fontAtlas->build())
|
||||
return false;
|
||||
ImU8 *tex_pixels_ch = nullptr;
|
||||
ImS32 tex_width;
|
||||
|
||||
@@ -133,6 +134,7 @@ namespace hex::fonts {
|
||||
ft = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user