summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Vulkan/VKMain.cpp
diff options
context:
space:
mode:
authorMai M <mathew1800@gmail.com>2022-06-02 20:20:52 -0400
committerGitHub <noreply@github.com>2022-06-02 20:20:52 -0400
commit84944625dfeb161c014106e718ef05189755a0f0 (patch)
tree6d8ee501b0aa010855ac1b24a90f9f6a9fd906f2 /Source/Core/VideoBackends/Vulkan/VKMain.cpp
parent5808a0bc9a5c44dd8142cbbece51b17e63f2499a (diff)
parentcb7e82760156da33f2f54fd3dbd9ae76c1fc55e3 (diff)
Merge pull request #10714 from OatmealDome/macos-mojave-bump
BuildMacOSUniversalBinary: Bump minimum macOS to 10.14
Diffstat (limited to 'Source/Core/VideoBackends/Vulkan/VKMain.cpp')
-rw-r--r--Source/Core/VideoBackends/Vulkan/VKMain.cpp35
1 files changed, 0 insertions, 35 deletions
diff --git a/Source/Core/VideoBackends/Vulkan/VKMain.cpp b/Source/Core/VideoBackends/Vulkan/VKMain.cpp
index 56cf93a376..bc76aa5610 100644
--- a/Source/Core/VideoBackends/Vulkan/VKMain.cpp
+++ b/Source/Core/VideoBackends/Vulkan/VKMain.cpp
@@ -280,30 +280,6 @@ void VideoBackend::Shutdown()
UnloadVulkanLibrary();
}
-#if defined(VK_USE_PLATFORM_METAL_EXT)
-static bool IsRunningOnMojaveOrHigher()
-{
- // id processInfo = [NSProcessInfo processInfo]
- id processInfo = reinterpret_cast<id (*)(Class, SEL)>(objc_msgSend)(
- objc_getClass("NSProcessInfo"), sel_getUid("processInfo"));
- if (!processInfo)
- return false;
-
- struct OSVersion // NSOperatingSystemVersion
- {
- size_t major_version; // NSInteger majorVersion
- size_t minor_version; // NSInteger minorVersion
- size_t patch_version; // NSInteger patchVersion
- };
-
- // const bool meets_requirement = [processInfo isOperatingSystemAtLeastVersion:required_version];
- constexpr OSVersion required_version = {10, 14, 0};
- const bool meets_requirement = reinterpret_cast<bool (*)(id, SEL, OSVersion)>(objc_msgSend)(
- processInfo, sel_getUid("isOperatingSystemAtLeastVersion:"), required_version);
- return meets_requirement;
-}
-#endif
-
void VideoBackend::PrepareWindow(WindowSystemInfo& wsi)
{
#if defined(VK_USE_PLATFORM_METAL_EXT)
@@ -345,17 +321,6 @@ void VideoBackend::PrepareWindow(WindowSystemInfo& wsi)
// Store the layer pointer, that way MoltenVK doesn't call [NSView layer] outside the main thread.
wsi.render_surface = layer;
-
- // The Metal version included with MacOS 10.13 and below does not support several features we
- // require. Furthermore, the drivers seem to choke on our shaders (mainly Intel). So, we warn
- // the user that this is an unsupported configuration, but permit them to continue.
- if (!IsRunningOnMojaveOrHigher())
- {
- PanicAlertFmtT(
- "You are attempting to use the Vulkan (Metal) backend on an unsupported operating system. "
- "For all functionality to be enabled, you must use macOS 10.14 (Mojave) or newer. Please "
- "do not report any issues encountered unless they also occur on 10.14+.");
- }
#endif
}
} // namespace Vulkan