win-capture: Fix extra duplicator refs
Make duplicator_capture_tick the sole creater, and reference adder of IDXGIOutputDuplication objects. This prevents a situation where duplicator_capture::showing cause be false while duplicator_capture::duplicator was not null at startup on background scenes, preventing IDXGIOutputDuplication from being recreated when DXGI_ERROR_ACCESS_LOST.
Showing
想要评论请 注册 或 登录