Fix fb variable name in GLSL
authoregdaniel <egdaniel@google.com>
Wed, 17 Aug 2016 19:55:30 +0000 (12:55 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 17 Aug 2016 19:55:30 +0000 (12:55 -0700)
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2252143002

NOTREECHECKS=True

Review-Url: https://codereview.chromium.org/2252143002

src/gpu/glsl/GrGLSLFragmentShaderBuilder.cpp

index 4513a69..7763f86 100644 (file)
@@ -266,6 +266,8 @@ const char* GrGLSLFragmentShaderBuilder::dstColor() {
             fbFetchColorName = DeclaredColorOutputName();
             // Set the dstColor to an intermediate variable so we don't override it with the output
             this->codeAppendf("vec4 %s = %s;", kDstColorName, fbFetchColorName);
+        } else {
+            return fbFetchColorName;
         }
     }
     return kDstColorName;