Bug 1267879 - Fix logic.
authorJeff Gilbert <jgilbert@mozilla.com>
Thu, 30 Jun 2016 18:06:42 -0700
changeset 303436 b0383b45780133bdf8e84baa2e3d359854210511
parent 303435 b2272d35d5f8bf3b43d4adcfd4e9391d7037b37a
child 303437 7b0427fcc6aa71c5231b866fff76b6312a9f642e
push id30388
push usercbook@mozilla.com
push dateSat, 02 Jul 2016 09:15:23 +0000
treeherdermozilla-central@39dffbba7642 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1267879
milestone50.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1267879 - Fix logic. MozReview-Commit-ID: JiZUQZYhrj1
gfx/gl/GLContext.cpp
--- a/gfx/gl/GLContext.cpp
+++ b/gfx/gl/GLContext.cpp
@@ -1112,35 +1112,35 @@ GLContext::LoadMoreSymbols(const char* p
                                                               GLFeature feature)
     {
         const bool useCore = this->IsFeatureProvidedByCoreSymbols(feature);
         const auto list = useCore ? coreList : extList;
         return fnLoadForFeature(list, feature);
     };
 
     if (IsSupported(GLFeature::robustness)) {
-        bool hasRobustness = true;
-
-        if (IsExtensionSupported(ARB_robustness)) {
+        bool hasRobustness = false;
+
+        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;
             }
         }
 
         if (!hasRobustness && IsExtensionSupported(EXT_robustness)) {
             const SymLoadStruct symbols[] = {
                 { (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);
         }
     }