summaryrefslogtreecommitdiffstats
path: root/tests/manual/rhi/multiview/texture.vert.qsb
diff options
context:
space:
mode:
authorVladimir Belyavsky <belyavskyv@gmail.com>2024-04-15 18:47:05 +0300
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2024-04-16 19:28:45 +0000
commitd914c58c7ee07f0d7598cee3491b815bd8d8bc23 (patch)
tree803dff31de616bdae5aa015d3045bef900d2ebfe /tests/manual/rhi/multiview/texture.vert.qsb
parentaeaaff1d5c3e3246d9cbf02499f1b952e9af8450 (diff)
QTextLayout: keep strong reference on font engine in a layout loop
This is speculative fix for the crashes in QTextLine::layout_helper() we're observing on users side. The possible reason is in that fontEngine and previousGlyphFontEngine, which are stored in LBH, became invalid during the layout cycle (destroyed by trimming font cache?). To prevent this we need to handle font engine's ref-counter gracefully, so just wrap them into QExplicitlySharedDataPointer. As a drive-by change, use in-class initialization for LBH members. Task-number: QTBUG-117500 Pick-to: 5.15 6.2 6.5 6.7 Change-Id: I6987a2b5618bb4ba8762f2ef01b4ce0dd60cb232 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'tests/manual/rhi/multiview/texture.vert.qsb')
0 files changed, 0 insertions, 0 deletions