commit | 898e7b568f535fc62a92acda3c22a68cb6e04dcc | [log] [tgz] |
---|---|---|
author | tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Fri Jun 01 20:42:15 2012 +0000 |
committer | tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Fri Jun 01 20:42:15 2012 +0000 |
tree | 4ca79b0ba7f0fb717d2079797bc9a5bc8f25e8f7 | |
parent | 0bdbed380218af581595a81aca728841aef27c42 [diff] [blame] |
Flip the switch to turn on GrCustomStage implementation of gradients; remove old implementation, including enums & state on various structs. http://codereview.appspot.com/6245078/ git-svn-id: http://skia.googlecode.com/svn/trunk@4129 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/effects/GrGradientEffects.cpp b/src/gpu/effects/GrGradientEffects.cpp index b1bf82f..000e0e5 100644 --- a/src/gpu/effects/GrGradientEffects.cpp +++ b/src/gpu/effects/GrGradientEffects.cpp
@@ -212,7 +212,7 @@ // If we aren't degenerate, emit some extra code, and accept a slightly // more complex coord. - if (fIsDegenerate) { + if (!fIsDegenerate) { // ac4 = 4.0 * params[0] * c code->appendf("\tfloat %s = %s * 4.0 * %s;\n",