diff options
-rw-r--r-- | src/cairo-gl-gradient.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/cairo-gl-gradient.c b/src/cairo-gl-gradient.c index 2f8c725b6..b204b0ba4 100644 --- a/src/cairo-gl-gradient.c +++ b/src/cairo-gl-gradient.c @@ -182,8 +182,13 @@ _cairo_gl_gradient_render (const cairo_gl_context_t *ctx, * the neareset stop to the zeroth pixel centre in order to correctly * populate the border color. For completeness, do both edges. */ - ((uint32_t*)bytes)[0] = color_stop_to_pixel(&stops[0]); - ((uint32_t*)bytes)[width-1] = color_stop_to_pixel(&stops[n_stops-1]); + + /* This not needed as we have generated pixman pixels by using the + * half pixel from left and right border + */ + /* ((uint32_t*)bytes)[0] = color_stop_to_pixel(&stops[0]); + * ((uint32_t*)bytes)[width-1] = color_stop_to_pixel(&stops[n_stops-1]); + */ return CAIRO_STATUS_SUCCESS; } |