libobs-d3d11: Allow multiple display captures of same monitor

This commit fixes a bug that occurs on Windows 8+ when two or more
"Display Capture" sources are active that are configured to capture the
same monitor.  Only one display capture would show, while all subsequent
display captures would display nothing.

Closes jp9000/obs-studio#1142
This commit is contained in:
Wouter
2018-01-09 22:25:29 +01:00
committed by jp9000
parent ed917657eb
commit 65f81105f5
3 changed files with 34 additions and 2 deletions

View File

@@ -561,6 +561,8 @@ struct gs_duplicator : gs_obj {
ComPtr<IDXGIOutputDuplication> duplicator;
gs_texture_2d *texture;
int idx;
long refs;
bool updated;
void Start();