View3D: reset the layer dirty state when going from hidden to visible
When a View3D (B) shares a scene with another always-visible View3D (A),
A's render loop calls prepareForRender() every frame, which clears the
TransformAndOpacityDirty flags on all shared backend nodes. If B then
becomes visible again, its prepareForRender() sees no dirty flags and
skips updating, producing stale frames.
A VisibilityDirty flag is introduced on QSSGRenderLayer that is set when
the owning viewport transitions from hidden to visible. This forces
wasDataDirty true for one frame, ensuring the layer re-renders.
Pick-to: 6.12 6.11
Task-number: QTBUG-146205
Change-Id: I0173cd678469e61f3beb19c69755ce5db4e716f0
Reviewed-by: Andy Nichols <andy.nichols@qt.io>