Updated CMakeLists.txt and configure.asc/script so that it checks for the required Windows SDK version before it enables the d3d12 renderer. Also fixed reported warnings in some builds.
This commit is contained in:
committed by
Sam Lantinga
parent
5abd676917
commit
7a335df9cf
10
configure.ac
10
configure.ac
@@ -3264,7 +3264,15 @@ CheckDIRECTX()
|
||||
if test x$enable_directx = xyes; then
|
||||
AC_CHECK_HEADER(d3d9.h, have_d3d=yes)
|
||||
AC_CHECK_HEADER(d3d11_1.h, have_d3d11=yes)
|
||||
AC_CHECK_HEADER(d3d12.h, have_d3d12=yes)
|
||||
AC_MSG_CHECKING(for d3d12 Windows SDK version)
|
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
||||
#include <winsdkver.h>
|
||||
#include <sdkddkver.h>
|
||||
#if WDK_NTDDI_VERSION < 0x0A000008
|
||||
asdf
|
||||
#endif
|
||||
]],[])], [have_d3d12=yes],[])
|
||||
AC_MSG_RESULT(have_d3d12)
|
||||
AC_CHECK_HEADER(ddraw.h, have_ddraw=yes)
|
||||
AC_CHECK_HEADER(dsound.h, have_dsound=yes)
|
||||
AC_CHECK_HEADER(dinput.h, have_dinput=yes)
|
||||
|
||||
Reference in New Issue
Block a user