Added additional check for HAVE_D3D12_H and missing SDL_VIDEO_RENDER_D3D12 in SDL_config.h.cmake

This commit is contained in:
chalonverse 2022-06-07 22:19:58 -07:00 committed by Sam Lantinga
parent 298ad937c0
commit b9c2ad8395
4 changed files with 7 additions and 0 deletions

View File

@ -1594,6 +1594,8 @@ elseif(WINDOWS)
check_c_source_compiles("
#include <winsdkver.h>
#include <sdkddkver.h>
#include <d3d12.h>
ID3D12Device5 *device;
#if WDK_NTDDI_VERSION > 0x0A000008
int main(int argc, char **argv) { return 0; }
#endif" HAVE_D3D12_H)

2
configure vendored
View File

@ -25090,6 +25090,8 @@ $as_echo_n "checking for d3d12 Windows SDK version... " >&6; }
#include <winsdkver.h>
#include <sdkddkver.h>
#include <d3d12.h>
ID3D12Device5 *device;
#if WDK_NTDDI_VERSION <= 0x0A000008
asdf
#endif

View File

@ -3268,6 +3268,8 @@ CheckDIRECTX()
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#include <winsdkver.h>
#include <sdkddkver.h>
#include <d3d12.h>
ID3D12Device5 *device;
#if WDK_NTDDI_VERSION <= 0x0A000008
asdf
#endif

View File

@ -440,6 +440,7 @@
#cmakedefine SDL_VIDEO_RENDER_D3D @SDL_VIDEO_RENDER_D3D@
#cmakedefine SDL_VIDEO_RENDER_D3D11 @SDL_VIDEO_RENDER_D3D11@
#cmakedefine SDL_VIDEO_RENDER_D3D12 @SDL_VIDEO_RENDER_D3D12@
#cmakedefine SDL_VIDEO_RENDER_OGL @SDL_VIDEO_RENDER_OGL@
#cmakedefine SDL_VIDEO_RENDER_OGL_ES @SDL_VIDEO_RENDER_OGL_ES@
#cmakedefine SDL_VIDEO_RENDER_OGL_ES2 @SDL_VIDEO_RENDER_OGL_ES2@