AtlasEngine: Fix nullptr crash when using soft fonts (#15419)
Woops. Regressed in #15343. Fixes #15409. ## Validation Steps Performed * Run `RenderingTests.exe` * Soft fonts work ✅
This commit is contained in:
parent
a9f34e3095
commit
245b13b94e
|
@ -1145,6 +1145,11 @@ void BackendD3D::_drawTextOverlapSplit(const RenderingPayload& p, u16 y)
|
|||
|
||||
void BackendD3D::_initializeFontFaceEntry(AtlasFontFaceEntryInner& fontFaceEntry)
|
||||
{
|
||||
if (!fontFaceEntry.fontFace)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
ALLOW_UNINITIALIZED_BEGIN
|
||||
std::array<u32, 0x100> codepoints;
|
||||
std::array<u16, 0x100> indices;
|
||||
|
|
Loading…
Reference in New Issue