From 0f85fdefc84117aa11f05595c30b794f0c01510c Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Mon, 16 Sep 2024 07:39:25 -0700
Subject: [PATCH] Fixed warning: "SDL_VIDEO_RENDER_D3D12" is not defined,
evaluates to 0
---
src/core/windows/SDL_windows.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/core/windows/SDL_windows.h b/src/core/windows/SDL_windows.h
index bc0aaf3e45107..9bf2902f0c554 100644
--- a/src/core/windows/SDL_windows.h
+++ b/src/core/windows/SDL_windows.h
@@ -36,7 +36,7 @@
#endif
#undef WINVER
#undef _WIN32_WINNT
-#if SDL_VIDEO_RENDER_D3D12 || defined(HAVE_DXGI1_6_H)
+#if defined(SDL_VIDEO_RENDER_D3D12) || defined(HAVE_DXGI1_6_H)
#define _WIN32_WINNT 0xA00 // For D3D12, 0xA00 is required
#elif defined(HAVE_SHELLSCALINGAPI_H)
#define _WIN32_WINNT 0x603 // For DPI support