Fix #143304: Convert Vulkan backend preference to Metal on macOS

This is in addition to the already existing OpenGL to Metal GPU backend
preference conversion.

Pull Request: https://projects.blender.org/blender/blender/pulls/143677
This commit is contained in:
Jonas Holzman
2025-07-31 14:48:16 +02:00
parent 474abdd7eb
commit 30af9ebc72

View File

@@ -774,7 +774,7 @@ void blo_do_versions_userdef(UserDef *userdef)
/* If the userdef was created on a different platform, it may have an
* unsupported GPU backend selected. If so, pick a supported default. */
#ifdef __APPLE__
if (userdef->gpu_backend == GPU_BACKEND_OPENGL) {
if (userdef->gpu_backend == GPU_BACKEND_OPENGL || userdef->gpu_backend == GPU_BACKEND_VULKAN) {
userdef->gpu_backend = GPU_BACKEND_METAL;
}
#else