Commit bdcdbfc7575cd26136165a16069932bb6f80415f

Ozkan Sezer 2022-06-19T11:04:24

Enable D3D12 detection when using mingw-w64 with cmake too c.f.: autotools commit 59fb7acbf7af9d64a2d5432bb6677585a0ddd50a

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e56a5f5..d9e2557 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1600,7 +1600,7 @@ elseif(WINDOWS)
       #include <winsdkver.h>
       #include <sdkddkver.h>
       #include <d3d12.h>
-      ID3D12Device5 *device;
+      ID3D12Device1 *device;
       #if WDK_NTDDI_VERSION > 0x0A000008
       int main(int argc, char **argv) { return 0; }
       #endif" HAVE_D3D12_H)