Backed out changeset ebf87300031f (bug 1267879)

This commit is contained in:
Sebastian Hengst 2016-07-01 00:34:55 +02:00
Родитель 50b73a3ff3
Коммит 4c9f3f326e
1 изменённых файлов: 9 добавлений и 11 удалений

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

@ -1116,16 +1116,15 @@ GLContext::LoadMoreSymbols(const char* prefix, bool trygl)
return fnLoadForFeature(list, feature);
};
if (IsSupported(GLFeature::robustness)) {
bool hasRobustness = true;
bool hasRobustness = false;
if (SupportsRobustness()) {
if (IsExtensionSupported(ARB_robustness)) {
const SymLoadStruct symbols[] = {
{ (PRFuncPtr*) &mSymbols.fGetGraphicsResetStatus, { "GetGraphicsResetStatusARB", nullptr } },
END_SYMBOLS
};
if (!fnLoadForExt(symbols, ARB_robustness)) {
hasRobustness = false;
if (fnLoadForExt(symbols, ARB_robustness)) {
hasRobustness = true;
}
}
@ -1134,14 +1133,13 @@ GLContext::LoadMoreSymbols(const char* prefix, bool trygl)
{ (PRFuncPtr*) &mSymbols.fGetGraphicsResetStatus, { "GetGraphicsResetStatusEXT", nullptr } },
END_SYMBOLS
};
if (!fnLoadForExt(symbols, EXT_robustness)) {
hasRobustness = false;
if (fnLoadForExt(symbols, EXT_robustness)) {
hasRobustness = true;
}
}
if (!hasRobustness) {
MarkUnsupported(GLFeature::robustness);
}
}
if (!hasRobustness) {
MarkUnsupported(GLFeature::robustness);
}
if (IsSupported(GLFeature::sync)) {