From b928888b81fb59bb87208e1658512c5fccfe6259 Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Thu, 17 Nov 2022 14:54:34 -0800 Subject: [PATCH] [macOS] Eliminate Vulkan hack for macOS < 10.14 (flutter/engine#37498) 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 --- engine/src/flutter/vulkan/procs/vulkan_interface.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/engine/src/flutter/vulkan/procs/vulkan_interface.h b/engine/src/flutter/vulkan/procs/vulkan_interface.h index 089ae829eb..2d01ed72b7 100644 --- a/engine/src/flutter/vulkan/procs/vulkan_interface.h +++ b/engine/src/flutter/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) \