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:
Leonard Hecker 2023-05-25 20:21:55 +02:00 committed by GitHub
parent a9f34e3095
commit 245b13b94e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -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;