Skip to content

Commit af1c8b3

Browse files
authored
Fix build break when building for Xbox using latest Windows SDK (#480)
1 parent 451708f commit af1c8b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DirectXTex/DirectXTexUtil.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ static_assert(WIN10_DXGI_FORMAT_V208 == DXGI_FORMAT_V208, "Windows SDK mismatch
2727
static_assert(WIN10_DXGI_FORMAT_V408 == DXGI_FORMAT_V408, "Windows SDK mismatch detected");
2828
#endif
2929

30-
#if defined(NTDDI_WIN11_GE)
30+
#if defined(NTDDI_WIN11_GE) && !defined(_GAMING_XBOX)
3131
static_assert(WIN11_DXGI_FORMAT_A4B4G4R4_UNORM == DXGI_FORMAT_A4B4G4R4_UNORM, "Windows SDK mismatch detected");
3232
#endif
3333

0 commit comments

Comments
 (0)