Index: src/gpu/batches/GrAnalyticRectBatch.cpp |
diff --git a/src/gpu/batches/GrAnalyticRectBatch.cpp b/src/gpu/batches/GrAnalyticRectBatch.cpp |
index b41aa7f71940e841a3a4c6aa891de41bb901d2bb..b13ea77a6604c7ed35da17866bb7388094165bfa 100644 |
--- a/src/gpu/batches/GrAnalyticRectBatch.cpp |
+++ b/src/gpu/batches/GrAnalyticRectBatch.cpp |
@@ -183,7 +183,7 @@ public: |
fragBuilder->codeAppend( "}"); |
fragBuilder->codeAppend( "float dvSign = sign(dot(offset, dvAxis));"); |
- fragBuilder->codeAppendf("%s = vec3(dvSign * dvAxis, dvLength);", |
+ fragBuilder->codeAppendf("%s = vec4(dvSign * dvAxis, dvLength, 0.0);", |
args.fDistanceVectorName); |
} |