Skip to content

Commit b9c2ad8

Browse files
chalonverseslouken
authored andcommitted
Added additional check for HAVE_D3D12_H and missing SDL_VIDEO_RENDER_D3D12 in SDL_config.h.cmake
1 parent 298ad93 commit b9c2ad8

4 files changed

Lines changed: 7 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1594,6 +1594,8 @@ elseif(WINDOWS)
15941594
check_c_source_compiles("
15951595
#include <winsdkver.h>
15961596
#include <sdkddkver.h>
1597+
#include <d3d12.h>
1598+
ID3D12Device5 *device;
15971599
#if WDK_NTDDI_VERSION > 0x0A000008
15981600
int main(int argc, char **argv) { return 0; }
15991601
#endif" HAVE_D3D12_H)

configure

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25090,6 +25090,8 @@ $as_echo_n "checking for d3d12 Windows SDK version... " >&6; }
2509025090

2509125091
#include <winsdkver.h>
2509225092
#include <sdkddkver.h>
25093+
#include <d3d12.h>
25094+
ID3D12Device5 *device;
2509325095
#if WDK_NTDDI_VERSION <= 0x0A000008
2509425096
asdf
2509525097
#endif

configure.ac

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3268,6 +3268,8 @@ CheckDIRECTX()
32683268
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
32693269
#include <winsdkver.h>
32703270
#include <sdkddkver.h>
3271+
#include <d3d12.h>
3272+
ID3D12Device5 *device;
32713273
#if WDK_NTDDI_VERSION <= 0x0A000008
32723274
asdf
32733275
#endif

include/SDL_config.h.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,7 @@
440440

441441
#cmakedefine SDL_VIDEO_RENDER_D3D @SDL_VIDEO_RENDER_D3D@
442442
#cmakedefine SDL_VIDEO_RENDER_D3D11 @SDL_VIDEO_RENDER_D3D11@
443+
#cmakedefine SDL_VIDEO_RENDER_D3D12 @SDL_VIDEO_RENDER_D3D12@
443444
#cmakedefine SDL_VIDEO_RENDER_OGL @SDL_VIDEO_RENDER_OGL@
444445
#cmakedefine SDL_VIDEO_RENDER_OGL_ES @SDL_VIDEO_RENDER_OGL_ES@
445446
#cmakedefine SDL_VIDEO_RENDER_OGL_ES2 @SDL_VIDEO_RENDER_OGL_ES2@

0 commit comments

Comments
 (0)