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>
commita745366ffa0a6c95b857104a82f4a18477988105
parent52158ec351bf619aaf1a52d0f7c3b344992438b8
authorChristian Strømme <christian.stromme@qt.io>
committerChristian Strømme <christian.stromme@qt.io>
commit timeWed, 3 Jun 2026 13:42:11 +0000