mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-17 22:32:51 +00:00
Bug 1267879 - Only check robustness if it's supported. - r=jrmuizel
MozReview-Commit-ID: 4RNjnWFccID
This commit is contained in:
parent
4973d611f7
commit
cef5e3c9cc
@ -1116,15 +1116,16 @@ GLContext::LoadMoreSymbols(const char* prefix, bool trygl)
|
|||||||
return fnLoadForFeature(list, feature);
|
return fnLoadForFeature(list, feature);
|
||||||
};
|
};
|
||||||
|
|
||||||
bool hasRobustness = false;
|
if (IsSupported(GLFeature::robustness)) {
|
||||||
if (SupportsRobustness()) {
|
bool hasRobustness = true;
|
||||||
|
|
||||||
if (IsExtensionSupported(ARB_robustness)) {
|
if (IsExtensionSupported(ARB_robustness)) {
|
||||||
const SymLoadStruct symbols[] = {
|
const SymLoadStruct symbols[] = {
|
||||||
{ (PRFuncPtr*) &mSymbols.fGetGraphicsResetStatus, { "GetGraphicsResetStatusARB", nullptr } },
|
{ (PRFuncPtr*) &mSymbols.fGetGraphicsResetStatus, { "GetGraphicsResetStatusARB", nullptr } },
|
||||||
END_SYMBOLS
|
END_SYMBOLS
|
||||||
};
|
};
|
||||||
if (fnLoadForExt(symbols, ARB_robustness)) {
|
if (!fnLoadForExt(symbols, ARB_robustness)) {
|
||||||
hasRobustness = true;
|
hasRobustness = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1133,13 +1134,14 @@ GLContext::LoadMoreSymbols(const char* prefix, bool trygl)
|
|||||||
{ (PRFuncPtr*) &mSymbols.fGetGraphicsResetStatus, { "GetGraphicsResetStatusEXT", nullptr } },
|
{ (PRFuncPtr*) &mSymbols.fGetGraphicsResetStatus, { "GetGraphicsResetStatusEXT", nullptr } },
|
||||||
END_SYMBOLS
|
END_SYMBOLS
|
||||||
};
|
};
|
||||||
if (fnLoadForExt(symbols, EXT_robustness)) {
|
if (!fnLoadForExt(symbols, EXT_robustness)) {
|
||||||
hasRobustness = true;
|
hasRobustness = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if (!hasRobustness) {
|
if (!hasRobustness) {
|
||||||
MarkUnsupported(GLFeature::robustness);
|
MarkUnsupported(GLFeature::robustness);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IsSupported(GLFeature::sync)) {
|
if (IsSupported(GLFeature::sync)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user