From cb68dccd0e416124e65b9c1fcfc86bca923eb869 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Mon, 25 Dec 2023 09:00:16 +0800 Subject: [PATCH] GPU (AMD): fix a silly bug --- src/detection/gpu/gpu_amd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detection/gpu/gpu_amd.c b/src/detection/gpu/gpu_amd.c index 272a85db5..3efd23c40 100644 --- a/src/detection/gpu/gpu_amd.c +++ b/src/detection/gpu/gpu_amd.c @@ -28,7 +28,7 @@ const char* ffDetectAmdGpuInfo(const FFGpuDriverCondition* cond, FFGpuDriverResu ffagsDeInitialize(apiHandle); } - if (!gpuInfo.numDevices == 0) + if (gpuInfo.numDevices == 0) return "loading ags library failed or no AMD gpus found"; AGSDeviceInfo* device = NULL;