Skip to content

Commit c5c2589

Browse files
committed
GPU: set GPU vendor string when using OpenGL backend
1 parent b273693 commit c5c2589

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/detection/gpu/gpu.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ const char* detectByOpenGL(FFlist* gpus)
5151
{
5252
FFGPUResult* gpu = (FFGPUResult*) ffListAdd(gpus);
5353
gpu->type = FF_GPU_TYPE_UNKNOWN;
54-
ffStrbufInit(&gpu->vendor);
54+
ffStrbufInitMove(&gpu->vendor, &result.vendor);
5555
ffStrbufInitMove(&gpu->name, &result.renderer);
56-
ffStrbufInitMove(&gpu->driver, &result.vendor);
56+
ffStrbufInit(&gpu->driver);
5757
ffStrbufInitF(&gpu->platformApi, "OpenGL %s", result.version.chars);
5858
gpu->index = FF_GPU_INDEX_UNSET;
5959
gpu->temperature = FF_GPU_TEMP_UNSET;

src/modules/gpu/gpu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ static void printGPUResult(FFGPUOptions* options, uint8_t index, const FFGPUResu
2626

2727
FF_STRBUF_AUTO_DESTROY output = ffStrbufCreate();
2828

29-
if(gpu->vendor.length > 0 && !ffStrbufStartsWith(&gpu->name, &gpu->vendor))
29+
if(gpu->vendor.length > 0 && !ffStrbufStartsWithIgnCase(&gpu->name, &gpu->vendor))
3030
{
3131
ffStrbufAppend(&output, &gpu->vendor);
3232
ffStrbufAppendC(&output, ' ');

0 commit comments

Comments
 (0)