diff options
author | rileya@google.com <rileya@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-07-03 14:11:05 +0000 |
---|---|---|
committer | rileya@google.com <rileya@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-07-03 14:11:05 +0000 |
commit | baaaeebf171e15a76ad59ef6972b1fe7b4a45fa7 (patch) | |
tree | b004929251e397b29f2ab4c8681b602ff22bbf65 | |
parent | f1d4695caef134a259fa425b763ff9d9c9911cfe (diff) |
Changed '0.5f' to '0.5' in conical gradient shader to fix problem with shader compile on Mac.
git-svn-id: http://skia.googlecode.com/svn/trunk@4444 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r-- | src/gpu/effects/GrGradientEffects.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/effects/GrGradientEffects.cpp b/src/gpu/effects/GrGradientEffects.cpp index 005002fc95..f9fd4d21d4 100644 --- a/src/gpu/effects/GrGradientEffects.cpp +++ b/src/gpu/effects/GrGradientEffects.cpp @@ -497,7 +497,7 @@ void GrGLConical2Gradient::emitFS(GrGLShaderBuilder* state, // intermediate value we'll use to compute the roots // q = -0.5 * (b +/- sqrt(d)) - code->appendf("\tfloat %s = -0.5f * (%s + (%s < 0.0 ? -1.0 : 1.0)" + code->appendf("\tfloat %s = -0.5 * (%s + (%s < 0.0 ? -1.0 : 1.0)" " * sqrt(%s));\n", qName.c_str(), bVar.c_str(), bVar.c_str(), dName.c_str()); |