Skip to content

Commit

Permalink
gl: fix the translate value in copy_boxes.
Browse files Browse the repository at this point in the history
Fixes 36 test cases (such as push-group-color)

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=48221
  • Loading branch information
Chuanbo Weng authored and Chris Wilson committed May 4, 2012
1 parent db4ee94 commit 748dcde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cairo-gl-spans-compositor.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ static cairo_int_status_t copy_boxes (void *_dst,
goto FAIL;

_cairo_gl_composite_set_source_operand (&setup, source_to_operand (src));
_cairo_gl_operand_translate (&setup.src, dx, dy);
_cairo_gl_operand_translate (&setup.src, -dx, -dy);

status = _cairo_gl_composite_begin (&setup, &ctx);
if (unlikely (status))
Expand Down

0 comments on commit 748dcde

Please sign in to comment.