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.
This commit is contained in:
Timothy Flynn 2024-08-30 13:26:17 -04:00 committed by Tim Flynn
commit c36a7ed4c3
Notes: github-actions[bot] 2024-08-30 19:09:04 +00:00

View file

@ -154,8 +154,13 @@ ErrorOr<int> 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