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>