From c36a7ed4c3e464b606a57691707118222907f1e1 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Fri, 30 Aug 2024 13:26:17 -0400 Subject: [PATCH] WebContent: Do not use IOSurface on Intel macOS for now For some reason, IOSurface results in a completely blank render on Intel machines. It's not clear why, so do not use IOSurface for now in order to allow Intel users to run the browser. --- Ladybird/WebContent/main.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Ladybird/WebContent/main.cpp b/Ladybird/WebContent/main.cpp index 3876ac73a97..6d2fc0bb5cc 100644 --- a/Ladybird/WebContent/main.cpp +++ b/Ladybird/WebContent/main.cpp @@ -154,8 +154,13 @@ ErrorOr serenity_main(Main::Arguments arguments) #if defined(AK_OS_MACOS) if (!mach_server_name.is_empty()) { - auto server_port = Core::Platform::register_with_mach_server(mach_server_name); + [[maybe_unused]] auto server_port = Core::Platform::register_with_mach_server(mach_server_name); + + // FIXME: For some reason, our implementation of IOSurface does not work on Intel macOS. Remove this conditional + // compilation when that is resolved. +# if ARCH(AARCH64) WebContent::BackingStoreManager::set_browser_mach_port(move(server_port)); +# endif } #endif