Skip to content

Commit ba7d3ed

Browse files
committed
GPU (Windows): fix a bad assignment
1 parent b7a9fe5 commit ba7d3ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/detection/gpu/gpu_amd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const char* ffDetectAmdGpuInfo(const FFGpuDriverCondition* cond, FFGpuDriverResu
6666
*result.type = device->isAPU ? FF_GPU_TYPE_INTEGRATED : FF_GPU_TYPE_DISCRETE;
6767

6868
if (result.index)
69-
*result.type = (uint32_t) device->adlAdapterIndex;
69+
*result.index = (uint32_t) device->adlAdapterIndex;
7070

7171
if (result.name)
7272
ffStrbufSetS(result.name, device->adapterString);

0 commit comments

Comments
 (0)