-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AtlasEngine: Harden against empty target sizes (#15615)
The WPF control has a minor bug where it initializes the renderer when there isn't even a window yet. When it then calls `SetWindowSize` it'll pass the result of `GetWindowRect` which is `0,0,0,0`. This made AtlasEngine unhappy because it restricted the glyph atlas size to some multiple of the window size. If the window size is `0,0` then there couldn't be a glyph atlas and so it crashed. ## Validation Steps Performed * Fixes WPF test control crash on startup ✅
- Loading branch information
Showing
3 changed files
with
18 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters