summaryrefslogtreecommitdiff
path: root/glamor/glamor_render.c
diff options
context:
space:
mode:
Diffstat (limited to 'glamor/glamor_render.c')
-rw-r--r--glamor/glamor_render.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/glamor/glamor_render.c b/glamor/glamor_render.c
index bc6347883..258a09b9d 100644
--- a/glamor/glamor_render.c
+++ b/glamor/glamor_render.c
@@ -1405,7 +1405,7 @@ glamor_trapezoids(CARD8 op,
void
glamor_composite_rects(CARD8 op,
- PicturePtr src, PicturePtr dst,
+ PicturePtr src, PicturePtr mask, PicturePtr dst,
int nrect, glamor_composite_rect_t *rects)
{
int n;
@@ -1414,7 +1414,7 @@ glamor_composite_rects(CARD8 op,
ValidatePicture(src);
ValidatePicture(dst);
- if (glamor_composite_with_shader(op, src, NULL, dst, nrect, rects))
+ if (glamor_composite_with_shader(op, src, mask, dst, nrect, rects))
return;
n = nrect;
@@ -1423,10 +1423,10 @@ glamor_composite_rects(CARD8 op,
while (n--) {
CompositePicture(op,
src,
- NULL,
+ mask,
dst,
r->x_src, r->y_src,
- 0, 0,
+ r->x_mask, r->y_mask,
r->x_dst, r->y_dst,
r->width, r->height);
r++;