From 0cd32284bef1dbdec0cf484cfcd940ce2dca449c Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Wed, 24 Jul 2019 20:51:39 -0700 Subject: Fixed UWP build issue related to windows version check --- Graphics/GraphicsEngineD3DBase/include/SwapChainD3DBase.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Graphics/GraphicsEngineD3DBase') diff --git a/Graphics/GraphicsEngineD3DBase/include/SwapChainD3DBase.h b/Graphics/GraphicsEngineD3DBase/include/SwapChainD3DBase.h index 1afdd1d6..d434449c 100644 --- a/Graphics/GraphicsEngineD3DBase/include/SwapChainD3DBase.h +++ b/Graphics/GraphicsEngineD3DBase/include/SwapChainD3DBase.h @@ -112,8 +112,13 @@ namespace Diligent // ; swapChainDesc.BufferCount = m_SwapChainDesc.BufferCount; - // DXGI_SCALING_NONE is not supported in Windows 7 - swapChainDesc.Scaling = IsWindows8OrGreater() ? DXGI_SCALING_NONE : DXGI_SCALING_STRETCH; + swapChainDesc.Scaling = DXGI_SCALING_NONE; + +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + // DXGI_SCALING_NONE is supported starting with Windows 8 + if (!IsWindows8OrGreater()) + swapChainDesc.Scaling = DXGI_SCALING_STRETCH; +#endif // DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL is the flip presentation model, where the contents of the back // buffer is preserved after the call to Present. This flag cannot be used with multisampling. -- cgit v1.2.3