diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-05-30 12:26:39 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-05-30 12:26:39 +0000 |
commit | e9b3f7dba0d721c60d296b09a578fbc6adaa7c63 (patch) | |
tree | ee56b3ec38ff4289bbf783eff4777b28da6eafb9 /src/gpu | |
parent | 6dbf6cde3bb5bd49e74a2a881d816a0572c62ded (diff) |
Fixed small bug in shader generation
http://codereview.appspot.com/6259053/
git-svn-id: http://skia.googlecode.com/svn/trunk@4064 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu')
-rw-r--r-- | src/gpu/gl/GrGLShaderBuilder.cpp | 2 |
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(); } } |