Fix D3D11 timeline semaphore handle double-close
wil::unique_handle
was never release
d and so the handle was closed at the end of the function. Since unique_compositor_semaphore_ref
will also close the handles on destruction, I adjusted both D3D11 and D3D12 code to make the release
call as close as possible to timeline_semaphore
's construction.
Bug only seen in in-process but it is in normal runtime. (Inconsistent semantics on some calls apparently)
Edited by Rylie Pavlik