mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 07:53:26 +00:00
Merge pull request #110970 from Repiteo/gui/fix-nullptr-deref
GUI: Fix `nullptr` deref in TextServer
This commit is contained in:
commit
b4472f4670
1 changed files with 1 additions and 1 deletions
|
@ -2016,7 +2016,7 @@ hb_font_t *TextServerAdvanced::_font_get_hb_handle(const RID &p_font_rid, int64_
|
|||
FontForSizeAdvanced *ffsd = nullptr;
|
||||
ERR_FAIL_COND_V(!_ensure_cache_for_size(fd, size, ffsd), nullptr);
|
||||
#ifdef MODULE_FREETYPE_ENABLED
|
||||
r_is_color = FT_HAS_COLOR(ffsd->face);
|
||||
r_is_color = ffsd->face && FT_HAS_COLOR(ffsd->face);
|
||||
#else
|
||||
r_is_color = false;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue