diff options
Diffstat (limited to 'src/utils.c')
-rw-r--r-- | src/utils.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/utils.c b/src/utils.c index 14b629a..c28208d 100644 --- a/src/utils.c +++ b/src/utils.c @@ -398,7 +398,9 @@ bool gl_get_gpu_info(gsr_egl *egl, gsr_gpu_info *info) { } } - if(strstr((const char*)gl_vendor, "AMD") || strstr((const char*)gl_vendor, "Mesa")) + if(strstr((const char*)gl_vendor, "AMD")) + info->vendor = GSR_GPU_VENDOR_AMD; + else if(strstr((const char*)gl_vendor, "Mesa") && gl_renderer && strstr((const char*)gl_renderer, "AMD")) info->vendor = GSR_GPU_VENDOR_AMD; else if(strstr((const char*)gl_vendor, "Intel")) info->vendor = GSR_GPU_VENDOR_INTEL; |