Workaround unreachable code warning in GrGLCaps
authorBrian Salomon <bsalomon@google.com>
Tue, 11 Oct 2016 21:40:33 +0000 (14:40 -0700)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Thu, 13 Oct 2016 17:49:42 +0000 (17:49 +0000)
BUG=skia:5833

GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=3179

Change-Id: I0b5ba57e533280e85b3672f476017dc12aefbbe5
Reviewed-on: https://skia-review.googlesource.com/3179
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>

src/gpu/gl/GrGLCaps.cpp

index 1a7b105..7d1bea3 100644 (file)
@@ -1780,7 +1780,7 @@ void GrGLCaps::initConfigTable(const GrGLContextInfo& ctxInfo, const GrGLInterfa
     fConfigTable[kIndex_8_GrPixelConfig].fFormats.fExternalType = 0;
     fConfigTable[kIndex_8_GrPixelConfig].fFormatType = kNormalizedFixedPoint_FormatType;
     // Disable this for now, while we investigate https://bug.skia.org/4333
-    if (false) {
+    if ((false)) {
         // Check for 8-bit palette..
         GrGLint numFormats;
         GR_GL_GetIntegerv(gli, GR_GL_NUM_COMPRESSED_TEXTURE_FORMATS, &numFormats);