提交 1ce61c57 编写于 作者: J jpark37

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.
上级 cda7f3e3
......@@ -52,7 +52,7 @@ static inline void update_settings(struct duplicator_capture *capture,
obs_enter_graphics();
gs_duplicator_destroy(capture->duplicator);
capture->duplicator = gs_duplicator_create(capture->monitor);
capture->duplicator = NULL;
capture->width = 0;
capture->height = 0;
capture->x = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册