Bug 1080277 - Add missing braces in GfxInfo::GetFeatureStatusImpl. r=jgilbert
authorTooru Fujisawa <arai_a@mac.com>
Wed, 08 Oct 2014 17:11:00 +0200
changeset 209536 0daef5a46f407bcca697a2a8b8800fcde36934e7
parent 209535 d6d74761dbb270c3d99297044ebf276a683d29ff
child 209537 c39759a6771e50912d89837adf6837152db0dced
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersjgilbert
bugs1080277
milestone35.0a1
Bug 1080277 - Add missing braces in GfxInfo::GetFeatureStatusImpl. r=jgilbert
widget/xpwidgets/GfxInfoX11.cpp
--- a/widget/xpwidgets/GfxInfoX11.cpp
+++ b/widget/xpwidgets/GfxInfoX11.cpp
@@ -336,19 +336,20 @@ GfxInfo::GetFeatureStatusImpl(int32_t aF
         }
         else if (mIsLlvmpipe && version(mMajorVersion, mMinorVersion) < version(9, 1)) {
           // bug 791905, Mesa bug 57733, fixed in Mesa 9.1 according to
           // https://bugs.freedesktop.org/show_bug.cgi?id=57733#c3
           *aStatus = nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION;
         }
         else if (aFeature == nsIGfxInfo::FEATURE_WEBGL_MSAA)
         {
-          if (mIsIntel && version(mMajorVersion, mMinorVersion) < version(8,1))
+          if (mIsIntel && version(mMajorVersion, mMinorVersion) < version(8,1)) {
             *aStatus = nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION;
             aSuggestedDriverVersion.AssignLiteral("Mesa 8.1");
+          }
         }
 
       } else if (mIsNVIDIA) {
         if (version(mMajorVersion, mMinorVersion, mRevisionVersion) < version(257,21)) {
           *aStatus = nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION;
           aSuggestedDriverVersion.AssignLiteral("NVIDIA 257.21");
         }
       } else if (mIsFGLRX) {