Skip to content

Commit 22d2c52

Browse files
committed
Merge pull request #156 from Microsoft/develop
D3D12Fullscreen stdafx.h out of sync between UWP and Desktop versions
2 parents aa7562c + 7c0514f commit 22d2c52

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

Samples/UWP/D3D12Fullscreen/src/stdafx.h

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,16 @@
2929
#include <pix.h>
3030

3131
//
32-
// DXGI tearing feature available in KB3156421.
32+
// The DXGI tearing feature is available on Windows 10 systems with KB3156421 or the
33+
// Anniversary Update installed. Since the 10586 SDK will not be patched, we define
34+
// the relevant symbols if they are missing.
3335
//
34-
#ifndef __dxgi1_5_h__
36+
#ifdef DXGI_PRESENT_ALLOW_TEARING
37+
#include <dxgi1_5.h>
38+
#else
39+
#define DXGI_PRESENT_ALLOW_TEARING 0x00000200UL
40+
#define DXGI_SWAP_CHAIN_FLAG_ALLOW_TEARING 2048
41+
3542
typedef
3643
enum DXGI_FEATURE
3744
{
@@ -47,9 +54,6 @@
4754
_Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
4855
UINT FeatureSupportDataSize) = 0;
4956
};
50-
51-
#define DXGI_PRESENT_ALLOW_TEARING 0x00000200UL
52-
#define DXGI_SWAP_CHAIN_FLAG_ALLOW_TEARING 2048
5357
#endif
5458

5559
#include <wrl.h>

0 commit comments

Comments
 (0)