diff --git a/host/platform/Windows/capture/DXGI/src/dxgi.c b/host/platform/Windows/capture/DXGI/src/dxgi.c index 00d477ab..82188766 100644 --- a/host/platform/Windows/capture/DXGI/src/dxgi.c +++ b/host/platform/Windows/capture/DXGI/src/dxgi.c @@ -35,6 +35,7 @@ #include #include #include +#include #include "dxgi_extra.h" @@ -340,15 +341,15 @@ static bool dxgi_init(void) const D3D_FEATURE_LEVEL * featureLevels; unsigned int featureLevelCount; - if (IsWindows8()) + if (IsWindows10OrGreater()) { - featureLevels = win8; - featureLevelCount = sizeof(win8) / sizeof(D3D_FEATURE_LEVEL); + featureLevels = win10; + featureLevelCount = ARRAY_LENGTH(win10); } else { - featureLevels = win10; - featureLevelCount = sizeof(win10) / sizeof(D3D_FEATURE_LEVEL); + featureLevels = win8; + featureLevelCount = ARRAY_LENGTH(win8); } IDXGIAdapter * tmp;