diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-10-23 22:01:03 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-10-23 22:01:03 +0200 |
commit | ff77c6430913912d171be86553a52a0e4e2e039e (patch) | |
tree | f745ddf3f69bda34eb93d460801c004060a60d84 /src | |
parent | 293ec193ba117efabf78b77dee682d709359d41f (diff) |
Mesa && AMD check
Diffstat (limited to 'src')
-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; |