Fix glyph atlas resize on OpenGL after another backend


QCRhiDistanceFieldGlyphCache::useTextureResizeWorkaround()
cached its answer in a function-local static, so the first
QRhi created in the process decided it for every later one.
An OpenGL cache created after a Null or Vulkan one skipped
the CPU shadow atlas and lost the glyphs when the atlas grew,
rendering blank text.

Pick-to: 6.12
Task-number: QTBUG-146930
Change-Id: I64bd7543c45a1f2b18d0c232adc418c0a69cd2a7
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
commit212c60f22731743208ca6b479a034f2f34e66640
parent9cd1675f4cfb722208bb9744cbab213565251616
authorAssam Boudjelthia <assam.boudjelthia@qt.io>
committerAssam Boudjelthia <assam.boudjelthia@qt.io>
commit timeFri, 31 Jul 2026 14:07:46 +0000