[host] fallback to IDXGIOutput1 if IDXGIOutput5 is not available

This commit is contained in:
Geoffrey McRae
2019-02-07 14:41:30 +11:00
parent 473e4716fc
commit 18634fa805
2 changed files with 49 additions and 29 deletions

View File

@@ -93,7 +93,7 @@ namespace Capture
ID3D11DevicePtr m_device;
D3D_FEATURE_LEVEL m_featureLevel;
ID3D11DeviceContextPtr m_deviceContext;
IDXGIOutput5Ptr m_output;
IDXGIOutputPtr m_output;
IDXGIOutputDuplicationPtr m_dup;
bool m_releaseFrame;
ID3D11Texture2DPtr m_texture[3];