diff options
| author | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-24 19:29:36 -0500 |
|---|---|---|
| committer | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-24 19:53:36 -0500 |
| commit | e435715d4a3f1f851f2e69277b41241c884027bc (patch) | |
| tree | 478301e93bce6ae98ceabe845c693c924ce05a2d /runtime/opus_decoder | |
| parent | 1db0f673e4f06f12fd08b1f998e337b0306b94b4 (diff) | |
d3d12_xs: the proxy's own presenter takes no reference on the proxy
The presentation the device proxy builds on the first PresentX (or for the package splash) is meant to go with the proxy: proxy_release destroys it before the device. It could not: create_window_presenter gives the presenter a reference on the device's outer identity, and for a device made by D3D12XboxCreateDevice that is the proxy (set_device_outer). The proxy owned the state, the state the presenter, the presenter a reference to the proxy, so after the first PresentX the proxy's count could not reach zero and the window, the swapchain and the device stayed until the process ended.
#984's presenter has this cycle as the #414 branch had it; the fix is the one made there (rung-414-on-main, ea9228dc0), applied to #984's form of present_state_for. create_window_presenter gets a hold_device argument, true by default so every other caller keeps its reference. The proxy passes false: it owns the presenter and destroys it before it releases the device, which is the order the reference was there to guarantee.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Diffstat (limited to 'runtime/opus_decoder')
0 files changed, 0 insertions, 0 deletions