Skip to content

Commit a619a17

Browse files
committed
this needs to be a runtime check
1 parent 2df15df commit a619a17

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

config.def.h

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -498,12 +498,8 @@
498498
/* Choose if the screen will be able to write around the notch or not */
499499
#define DEFAULT_NOTCH_WRITE_OVER_ENABLE false
500500

501-
#ifdef __APPLE__
502-
#include <Availability.h>
503-
#if (defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 120000) || \
504-
(defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 130000) || \
505-
(defined(__TV_OS_VERSION_MIN_REQUIRED) && __TV_OS_VERSION_MIN_REQUIRED >= 120000)
506-
#define DEFAULT_USE_METAL_ARG_BUFFERS true
501+
#if defined(__APPLE__) && defined(HAVE_VULKAN)
502+
#define DEFAULT_USE_METAL_ARG_BUFFERS (!!__builtin_available(macOS 12, iOS 13, tvOS 12, *))
507503
#else
508504
#define DEFAULT_USE_METAL_ARG_BUFFERS false
509505
#endif

0 commit comments

Comments
 (0)