fixed skslc vec4 uniforms
Bug: skia:
Change-Id: I40ad3d0e73dbeedcd150b0d0a7f12c636f01cf33
Reviewed-on: https://skia-review.googlesource.com/24100
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
diff --git a/tests/SkSLFPTest.cpp b/tests/SkSLFPTest.cpp
index a5a1a6e..bf8e835 100644
--- a/tests/SkSLFPTest.cpp
+++ b/tests/SkSLFPTest.cpp
@@ -205,7 +205,7 @@
"fColorVar = args.fUniformHandler->addUniform(kFragment_GrShaderFlag, kVec4f_GrSLType, "
"kDefault_GrSLPrecision, \"color\");",
"const SkRect colorValue = _outer.color();",
- "pdman.set4fv(fColorVar, 4, (float*) &colorValue);"
+ "pdman.set4fv(fColorVar, 1, (float*) &colorValue);"
});
}