Skip to content

Commit 316bb94

Browse files
authored
Fix the mask rendering with correct matrix. (#134)
1 parent 61a8b22 commit 316bb94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: tgfx/src/gpu/opengl/GLCanvas.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ void GLCanvas::drawTexture(const Texture* texture, const RGBAAALayout* layout, c
135135
return;
136136
}
137137
draw(clippedLocalQuad, clippedDeviceQuad, GLFillRectOp::Make(), std::move(processor),
138-
TextureMaskFragmentProcessor::MakeUseLocalCoord(mask, Matrix::I(), inverted), true);
138+
TextureMaskFragmentProcessor::MakeUseLocalCoord(mask, localMatrix, inverted), true);
139139
}
140140

141141
void GLCanvas::drawPath(const Path& path, const Paint& paint) {

0 commit comments

Comments
 (0)