Two faults found on the first run against a real DXGI multi-monitor host,
each of which left the composed view black while every geometry check
passed:
- Compose setup ran on the frame thread via onFrameFormat, but the VAO and
FBO it creates are container objects that only exist in the creating
context. The render thread drew with empty ones. Setup is now deferred to
the render thread and picked up before the next draw
(composeSetupPending), and a post-process pass is forced afterwards so a
frame that arrived before setup completed is not presented stale.
- A DMA-imported atlas is an external image and must be sampled with
samplerExternalOES. Compose only compiled the plain sampler2D variant, so
the DMA path sampled black. Both variants are now compiled and setup
selects one, mirroring what the desktop shaders already do.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WxYTZ8oBdHX3YrHGgdLKwC