Bug 1267879 - Fix logic.

MozReview-Commit-ID: JiZUQZYhrj1
This commit is contained in:
Jeff Gilbert 2016-06-30 18:06:42 -07:00
parent cef5e3c9cc
commit aa18e3d272

View File

@ -1117,15 +1117,15 @@ GLContext::LoadMoreSymbols(const char* prefix, bool trygl)
};
if (IsSupported(GLFeature::robustness)) {
bool hasRobustness = true;
bool hasRobustness = false;
if (IsExtensionSupported(ARB_robustness)) {
if (!hasRobustness && 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,8 +1134,8 @@ 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;
}
}