fix concat order for local matrices
BUG=skia: R=bsalomon@google.com Author: reed@google.com Review URL: https://codereview.chromium.org/446013004
This commit is contained in:
parent
27ff227589
commit
3ffade63b3
@ -27,7 +27,7 @@ SkShader::Context* SkLocalMatrixShader::onCreateContext(const ContextRec& rec,
|
|||||||
ContextRec newRec(rec);
|
ContextRec newRec(rec);
|
||||||
SkMatrix tmp;
|
SkMatrix tmp;
|
||||||
if (rec.fLocalMatrix) {
|
if (rec.fLocalMatrix) {
|
||||||
tmp.setConcat(this->getLocalMatrix(), *rec.fLocalMatrix);
|
tmp.setConcat(*rec.fLocalMatrix, this->getLocalMatrix());
|
||||||
newRec.fLocalMatrix = &tmp;
|
newRec.fLocalMatrix = &tmp;
|
||||||
} else {
|
} else {
|
||||||
newRec.fLocalMatrix = &this->getLocalMatrix();
|
newRec.fLocalMatrix = &this->getLocalMatrix();
|
||||||
|
Loading…
Reference in New Issue
Block a user