From 68df5729fa25d3ac46a5f3972fda84ee9d630a71 Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Thu, 10 Nov 2022 22:44:31 +0100 Subject: [PATCH] [macOS] Eliminate Vulkan hack for macOS < 10.14 Eliminates an undef of VK_USE_PLATFORM_METAL_EXT that works around some unguarded `@available` checks for macOS 10.13. Our minimum macOS SDK is now macOS 10.14 so we can safely assume Metal support since it's a requirement for macOS 10.14. Issue: https://github.com/flutter/flutter/issues/114445 --- vulkan/procs/vulkan_interface.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/vulkan/procs/vulkan_interface.h b/vulkan/procs/vulkan_interface.h index 089ae829eb8f9..2d01ed72b7143 100644 --- a/vulkan/procs/vulkan_interface.h +++ b/vulkan/procs/vulkan_interface.h @@ -24,14 +24,6 @@ #endif // VK_USE_PLATFORM_FUCHSIA #endif // OS_FUCHSIA -// TODO(dnfield): vulkan_metal.h has some unguarded availability checks for -// macOS 10.13. We can remove this if we bump to 10.14 or if that gets fixed -// upstream, but fixing it upstream will take some time to flow through to -// ANGLE's DEPS. -#ifdef VK_USE_PLATFORM_METAL_EXT -#undef VK_USE_PLATFORM_METAL_EXT -#endif // VK_USE_PLATFORM_METAL_EXT - #include #define VK_CALL_LOG_ERROR(expression) \