Detect AMD gpu on more than one possible token...

This commit is contained in:
Sam Gateau 2019-06-20 14:24:04 -07:00
parent a66bd04810
commit bde50aa21c

View file

@ -121,7 +121,7 @@ const char* Instance::findGPUVendorInDescription(const std::string& description)
return keys::gpu::vendor_Intel; return keys::gpu::vendor_Intel;
} }
// AMD gpu // AMD gpu
else if (description.find(keys::gpu::vendor_AMD) != std::string::npos) { else if ((description.find(keys::gpu::vendor_AMD) != std::string::npos) || (description.find("Radeon") != std::string::npos)) {
return keys::gpu::vendor_AMD; return keys::gpu::vendor_AMD;
} }
// NVIDIA gpu // NVIDIA gpu