Fix rendering on Intel-based macOS to use integrated GPU primarly

This commit is contained in:
Wojtek Figat
2025-11-25 10:30:53 +01:00
parent a8db0086b1
commit dacb3b0891

View File

@@ -1187,6 +1187,10 @@ GPUDevice* GPUDeviceVulkan::Create()
return nullptr;
}
uint32 vendorId = 0;
#if PLATFORM_MAC && PLATFORM_ARCH_X64
// Intel-based macs have artifacts on MoltenVK when using dedicated AMD GPU so fallback to integrated Intel GPU
vendorId = GPU_VENDOR_ID_INTEL;
#endif
if (CommandLine::Options.NVIDIA.IsTrue())
vendorId = GPU_VENDOR_ID_NVIDIA;
else if (CommandLine::Options.AMD.IsTrue())