diff options
| author | Laszlo Agocs <laszlo.agocs@qt.io> | 2024-04-11 13:47:28 +0200 |
|---|---|---|
| committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2024-04-12 14:31:32 +0200 |
| commit | a4e0d39a535cb2ca4625eb84bc352b3526d09d66 (patch) | |
| tree | 048ce0527836431fc0336d6656b7c8ea15048828 /src/qmlworkerscript/qquickworkerscript.cpp | |
| parent | c8f065e2b100556dad23cb96f8c24c554b11f822 (diff) | |
Raise the dead in QSGRhiShaderMaterialTypeCache
Amends c204b2205c045c2e7dbab442cca2b9f17f5cc9ae
Consider what happens when rapidly creating and destroying
MultiEffect { } instances: due to the reference counting,
the corresponding QSGMaterialType* is moved to the
graveyard (emptied typically only on explicit
releaseResources() or when exiting), and never reused.
However, that reuse is very much desired, because
other components in the system, e.g. the scenegraph
renderer, uses that type pointer value as keys in its
caches. Ideally a ShaderEffect with the exact same
shaders should give the same QSGMaterialType* value.
Pick-to: 6.7 6.6 6.5
Fixes: QTBUG-124281
Change-Id: I01dabc8cc361036ccd735099d42ae321d267ab26
Reviewed-by: Christian Strømme <christian.stromme@qt.io>
Diffstat (limited to 'src/qmlworkerscript/qquickworkerscript.cpp')
0 files changed, 0 insertions, 0 deletions
