GPU: add support for Windows

This commit is contained in:
李通洲
2022-10-05 17:53:18 +08:00
parent 230d2ac39d
commit 0d3d881c24
2 changed files with 45 additions and 1 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ static void printGPUResult(FFinstance* instance, uint8_t index, FFcache* cache,
FFstrbuf output;
ffStrbufInitA(&output, gpu->vendor.length + 1 + gpu->name.length);
if(gpu->vendor.length > 0)
if(gpu->vendor.length > 0 && !ffStrbufStartsWith(&gpu->name, &gpu->vendor))
{
ffStrbufAppend(&output, &gpu->vendor);
ffStrbufAppendC(&output, ' ');