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);
|
||||
SkMatrix tmp;
|
||||
if (rec.fLocalMatrix) {
|
||||
tmp.setConcat(this->getLocalMatrix(), *rec.fLocalMatrix);
|
||||
tmp.setConcat(*rec.fLocalMatrix, this->getLocalMatrix());
|
||||
newRec.fLocalMatrix = &tmp;
|
||||
} else {
|
||||
newRec.fLocalMatrix = &this->getLocalMatrix();
|
||||
|
Loading…
Reference in New Issue
Block a user