mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1263685 - Check if paint has a shader before modifying local matrix in DrawTargetSkia::MaskSurface. r=mchang, a=ritu
This commit is contained in:
parent
7a4212e85c
commit
a52202886b
@ -665,7 +665,8 @@ DrawTargetSkia::MaskSurface(const Pattern &aSource,
|
||||
return;
|
||||
}
|
||||
|
||||
if (aOffset != Point(0, 0)) {
|
||||
if (aOffset != Point(0, 0) &&
|
||||
paint.mPaint.getShader()) {
|
||||
SkMatrix transform;
|
||||
transform.setTranslate(PointToSkPoint(-aOffset));
|
||||
SkShader* matrixShader = paint.mPaint.getShader()->newWithLocalMatrix(transform);
|
||||
|
Loading…
Reference in New Issue
Block a user