mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 20:30:41 +00:00
Bug 1267879 - Fix logic.
MozReview-Commit-ID: JiZUQZYhrj1
This commit is contained in:
parent
cef5e3c9cc
commit
aa18e3d272
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user