mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-05-05 06:20:43 +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;
|
info->vendor = GSR_GPU_VENDOR_AMD;
|
||||||
else if(strstr((const char*)gl_vendor, "Intel"))
|
else if(strstr((const char*)gl_vendor, "Intel"))
|
||||||
info->vendor = GSR_GPU_VENDOR_INTEL;
|
info->vendor = GSR_GPU_VENDOR_INTEL;
|
||||||
|
|||||||
Reference in New Issue
Block a user