diff options
author | Ethan Nicholas <ethannicholas@google.com> | 2017-07-17 15:13:45 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-07-17 19:36:00 +0000 |
commit | ee33873325ce1d492d967bc9644e78e3243055d9 (patch) | |
tree | d1041a4db635c8a5540232bac0eaa9cd036bb57c /src/sksl/SkSLCPPCodeGenerator.cpp | |
parent | c2bd631c431c6ee865b709bd11e26a9bdceaf5cd (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 'src/sksl/SkSLCPPCodeGenerator.cpp')
-rw-r--r-- | src/sksl/SkSLCPPCodeGenerator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sksl/SkSLCPPCodeGenerator.cpp b/src/sksl/SkSLCPPCodeGenerator.cpp index 3da7e8e5f0..235c9d8950 100644 --- a/src/sksl/SkSLCPPCodeGenerator.cpp +++ b/src/sksl/SkSLCPPCodeGenerator.cpp @@ -442,7 +442,7 @@ void CPPCodeGenerator::writeSetData(std::vector<const Variable*>& uniforms) { const char* name = u->fName.c_str(); if (u->fType == *fContext.fVec4_Type) { this->writef(" const SkRect %sValue = _outer.%s();\n" - " %s.set4fv(%sVar, 4, (float*) &%sValue);\n", + " %s.set4fv(%sVar, 1, (float*) &%sValue);\n", name, name, pdman, HCodeGenerator::FieldName(name).c_str(), name); } else if (u->fType == *fContext.fMat4x4_Type) { this->writef(" float %sValue[16];\n" |