Detect mesa version.

This commit is contained in:
hiker
2014-12-22 07:59:51 +11:00
parent c54fed411f
commit f4c9724fa9

View File

@@ -85,6 +85,19 @@ public:
{
m_version.clear();
// Mesa needs to be tested first, otherwise (if testing for card name
// further down) it would be detected as a non-mesa driver.
if (driver_version.find("Mesa") != std::string::npos)
{
std::vector<std::string> l = StringUtils::split(driver_version, ' ');
if (l.size() > 0)
{
convertVersionString(l.back());
return;
}
}
// Intel card: driver version = "3.1.0 - Build 9.17.10.3517"
// ---------------------------------------------------------
if (StringUtils::startsWith(card_name, "Intel"))