GPU (macOS): tidy

This commit is contained in:
李通洲
2024-01-11 09:53:20 +08:00
parent a8aaf605b1
commit 653e689f18
+3 -3
View File
@@ -15,7 +15,7 @@ const char* ffGpuDetectMetal(FFlist* gpus)
FFGPUResult* gpu = NULL;
FF_LIST_FOR_EACH(FFGPUResult, x, *gpus)
{
if (x->deviceId == device.registryID || ffStrbufEqualS(&x->name, device.name.UTF8String))
if (x->deviceId == device.registryID)
{
gpu = x;
break;
@@ -34,7 +34,7 @@ const char* ffGpuDetectMetal(FFlist* gpus)
gpu->type = device.hasUnifiedMemory ? FF_GPU_TYPE_INTEGRATED : FF_GPU_TYPE_DISCRETE;
}
return NULL;
}
return NULL;
return "Metal API is not supported by this macOS version";
}