зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1267879 - Only check robustness if it's supported. - r=jrmuizel
MozReview-Commit-ID: 4RNjnWFccID
This commit is contained in:
Родитель
c3f1f735b3
Коммит
05bf436edd
|
@ -1091,15 +1091,16 @@ GLContext::LoadMoreSymbols(const char* prefix, bool trygl)
|
|||
return fnLoadForFeature(list, feature);
|
||||
};
|
||||
|
||||
bool hasRobustness = false;
|
||||
if (SupportsRobustness()) {
|
||||
if (IsSupported(GLFeature::robustness)) {
|
||||
bool hasRobustness = true;
|
||||
|
||||
if (IsExtensionSupported(ARB_robustness)) {
|
||||
const SymLoadStruct symbols[] = {
|
||||
{ (PRFuncPtr*) &mSymbols.fGetGraphicsResetStatus, { "GetGraphicsResetStatusARB", nullptr } },
|
||||
END_SYMBOLS
|
||||
};
|
||||
if (fnLoadForExt(symbols, ARB_robustness)) {
|
||||
hasRobustness = true;
|
||||
if (!fnLoadForExt(symbols, ARB_robustness)) {
|
||||
hasRobustness = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1108,13 +1109,14 @@ GLContext::LoadMoreSymbols(const char* prefix, bool trygl)
|
|||
{ (PRFuncPtr*) &mSymbols.fGetGraphicsResetStatus, { "GetGraphicsResetStatusEXT", nullptr } },
|
||||
END_SYMBOLS
|
||||
};
|
||||
if (fnLoadForExt(symbols, EXT_robustness)) {
|
||||
hasRobustness = true;
|
||||
if (!fnLoadForExt(symbols, EXT_robustness)) {
|
||||
hasRobustness = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!hasRobustness) {
|
||||
MarkUnsupported(GLFeature::robustness);
|
||||
|
||||
if (!hasRobustness) {
|
||||
MarkUnsupported(GLFeature::robustness);
|
||||
}
|
||||
}
|
||||
|
||||
if (IsSupported(GLFeature::sync)) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче