mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-04-21 12:20:46 +02:00
gl: Pad the gradient texture.
Fixes test/linear-gradient-subset
This commit is contained in:
parent
afe6f4f051
commit
271752b944
1 changed files with 1 additions and 0 deletions
|
|
@ -1166,6 +1166,7 @@ _render_gradient (const cairo_gl_context_t *ctx,
|
|||
return _cairo_error (CAIRO_STATUS_NO_MEMORY);
|
||||
|
||||
pixman_image_set_filter (gradient, PIXMAN_FILTER_BILINEAR, NULL, 0);
|
||||
pixman_image_set_repeat (gradient, PIXMAN_REPEAT_PAD);
|
||||
|
||||
image = pixman_image_create_bits (PIXMAN_a8r8g8b8, width, 1,
|
||||
bytes, sizeof(uint32_t)*width);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue