mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-03-31 09:07:13 +09:00
Mesa && AMD check
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user