projects
/
platform
/
upstream
/
libSkiaSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91cd280
)
Fix fb variable name in GLSL
author
egdaniel
<egdaniel@google.com>
Wed, 17 Aug 2016 19:55:30 +0000
(12:55 -0700)
committer
Commit 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
patch
|
blob
|
history
diff --git
a/src/gpu/glsl/GrGLSLFragmentShaderBuilder.cpp
b/src/gpu/glsl/GrGLSLFragmentShaderBuilder.cpp
index
4513a69
..
7763f86
100644
(file)
--- a/
src/gpu/glsl/GrGLSLFragmentShaderBuilder.cpp
+++ b/
src/gpu/glsl/GrGLSLFragmentShaderBuilder.cpp
@@
-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;