Bug 668004 - dont return ERROR_FAILURE in GetFeatureStatusImpl - r=dsherk

At least, WebGL antialiasing was broken on linux, and couldn't be force-enabled, because of that.
This commit is contained in:
Benoit Jacob 2011-11-05 16:46:54 -04:00
Родитель 9244d9078c
Коммит 7a1f80bdef
1 изменённых файлов: 2 добавлений и 6 удалений

Просмотреть файл

@ -598,15 +598,11 @@ GfxInfoBase::GetFeatureStatusImpl(PRInt32 aFeature,
NS_FAILED(GetAdapterDeviceID(&adapterDeviceID)) ||
NS_FAILED(GetAdapterDriverVersion(adapterDriverVersionString)))
{
return NS_ERROR_FAILURE;
return NS_OK;
}
PRUint64 driverVersion;
if (!ParseDriverVersion(adapterDriverVersionString, &driverVersion)) {
#if !defined(XP_MACOSX)
return NS_ERROR_FAILURE;
#endif
}
ParseDriverVersion(adapterDriverVersionString, &driverVersion);
// special-case the WinXP test slaves: they have out-of-date drivers, but we still want to
// whitelist them, actually we do know that this combination of device and driver version