зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset ebf87300031f (bug 1267879)
This commit is contained in:
Родитель
50b73a3ff3
Коммит
4c9f3f326e
|
@ -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)) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче