Commit 7829394
committed
_LoadFontImpl: params.fontConfig.FontDataOwnedByAtlas = true
Fix for an issue mentioned at ocornut/imgui@98636f4#r172496863
The issue is that fontData.data is freed immediately afterwards, but imgui/FreeType may still need to read the TTF buffer later (particularly with the new baked-font workflow).
Before the commit, imgui always copied the buffer when FontDataOwnedByAtlas == false, which unintentionally masked this bug.1 parent 902dd7d commit 7829394
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | | - | |
116 | 115 | | |
117 | 116 | | |
118 | 117 | | |
| |||
0 commit comments