Index: src/gpu/effects/GrDistanceFieldGeoProc.cpp |
diff --git a/src/gpu/effects/GrDistanceFieldGeoProc.cpp b/src/gpu/effects/GrDistanceFieldGeoProc.cpp |
index be7b9ac71b40002ad76b7e4845b77d784e2b9e41..c74c5cec8048d31362d11ff00f33f018471cebe0 100644 |
--- a/src/gpu/effects/GrDistanceFieldGeoProc.cpp |
+++ b/src/gpu/effects/GrDistanceFieldGeoProc.cpp |
@@ -720,7 +720,7 @@ public: |
// mapped linearly to coverage, so use a linear step: |
if (isGammaCorrect) { |
fragBuilder->codeAppend("vec4 val = " |
- "vec4(clamp(distance + vec3(afwidth) / vec3(2.0 * afwidth), 0.0, 1.0), 1.0f);"); |
+ "vec4(clamp(distance + vec3(afwidth) / vec3(2.0 * afwidth), 0.0, 1.0), 1.0);"); |
} else { |
fragBuilder->codeAppend( |
"vec4 val = vec4(smoothstep(vec3(-afwidth), vec3(afwidth), distance), 1.0);"); |