Skip to content

Commit 47cec48

Browse files
committed
GPU (Windows): fix uninited variables
1 parent 09ccbca commit 47cec48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/detection/gpu/gpu_windows.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ static const char* detectWithDxgi(FFlist* gpus)
102102
continue;
103103

104104
FFGPUResult* gpu = (FFGPUResult*)ffListAdd(gpus);
105-
gpu->dedicated.total = gpu->dedicated.total = gpu->shared.total = gpu->shared.used = FF_GPU_VMEM_SIZE_UNSET;
105+
gpu->dedicated.total = gpu->dedicated.used = gpu->shared.total = gpu->shared.used = FF_GPU_VMEM_SIZE_UNSET;
106106

107107
ffStrbufInit(&gpu->vendor);
108108
ffStrbufAppendS(&gpu->vendor, ffGetGPUVendorString(desc.VendorId));

0 commit comments

Comments
 (0)