aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar Ethan Nicholas <ethannicholas@google.com>2017-07-17 15:13:45 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-07-17 19:36:00 +0000
commitee33873325ce1d492d967bc9644e78e3243055d9 (patch)
treed1041a4db635c8a5540232bac0eaa9cd036bb57c /tests
parentc2bd631c431c6ee865b709bd11e26a9bdceaf5cd (diff)
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>
Diffstat (limited to 'tests')
-rw-r--r--tests/SkSLFPTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/SkSLFPTest.cpp b/tests/SkSLFPTest.cpp
index a5a1a6ebeb..bf8e835bba 100644
--- a/tests/SkSLFPTest.cpp
+++ b/tests/SkSLFPTest.cpp
@@ -205,7 +205,7 @@ DEF_TEST(SkSLFPInUniform, r) {
"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);"
});
}