aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-05-30 12:26:39 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-05-30 12:26:39 +0000
commite9b3f7dba0d721c60d296b09a578fbc6adaa7c63 (patch)
treeee56b3ec38ff4289bbf783eff4777b28da6eafb9 /src/gpu
parent6dbf6cde3bb5bd49e74a2a881d816a0572c62ded (diff)
Fixed small bug in shader generation
Diffstat (limited to 'src/gpu')
-rw-r--r--src/gpu/gl/GrGLShaderBuilder.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gpu/gl/GrGLShaderBuilder.cpp b/src/gpu/gl/GrGLShaderBuilder.cpp
index 289e7be634..2e1f48e16e 100644
--- a/src/gpu/gl/GrGLShaderBuilder.cpp
+++ b/src/gpu/gl/GrGLShaderBuilder.cpp
@@ -116,6 +116,8 @@ void GrGLShaderBuilder::computeSwizzle(uint32_t configFlags) {
void GrGLShaderBuilder::computeModulate(const char* fsInColor) {
if (NULL != fsInColor) {
fModulate.printf(" * %s", fsInColor);
+ } else {
+ fModulate.reset();
}
}