aboutsummaryrefslogtreecommitdiffstats
path: root/examples/qmlcompiler/tutorials
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2023-11-27 15:13:21 +0100
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2023-11-28 09:42:50 +0100
commit2bc7d894a7e7380270f057433e7ebefa32edbed3 (patch)
treec16e13281329f93fbccfee5f072ddad6f59f3b3f /examples/qmlcompiler/tutorials
parented065f85863392a4dd253dd72737414590d6f958 (diff)
Fix possible crash when using CurveRenderer text
The curve renderer would keep references to its cache, which could be invalid if the font database had been purged. For the distance field renderer we handle this by never purging caches that are in use, but we don't really need such a mechanism with the CurveRenderer, since we don't need to keep any data around for the actual rendering later (like the textures in the other caches). Instead, we just look up the cache when we need it, if it has been purged in the mean time, it's just re-created. Change-Id: I0c2a84f3176787f94c599b65296b9d87d2e28858 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Diffstat (limited to 'examples/qmlcompiler/tutorials')
0 files changed, 0 insertions, 0 deletions