fixed a vec2 -> float2 that got missed
Bug: skia: Change-Id: I51ae880ba0949d0c71331be6ce0ff13411169191 Reviewed-on: https://skia-review.googlesource.com/28122 Reviewed-by: Ethan Nicholas <ethannicholas@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
This commit is contained in:
parent
94e0b1166e
commit
31981ecdcb
@ -167,7 +167,7 @@ GrGLuint GLVec4ScalarBench::setupShader(const GrGLContext* ctx) {
|
||||
float centerY = 1.0f - radius;
|
||||
fshaderTxt.appendf(
|
||||
" {\n"
|
||||
" float d = length(%s - vec2(%f, %f));\n"
|
||||
" float d = length(%s - float2(%f, %f));\n"
|
||||
" float edgeAlpha = clamp(100.0 * (%f - d), 0.0, 1.0);\n"
|
||||
" outputCoverage = 0.5 * outputCoverage + 0.5 * %s;\n"
|
||||
" }\n",
|
||||
|
Loading…
Reference in New Issue
Block a user