gl: gradient texture edge pixel color adjust 05/45105/3
authorHenry Song <henry.song@samsung.com>
Sat, 25 Jul 2015 05:52:05 +0000 (22:52 -0700)
committernisanthmp <nisanth.mp@samsung.com>
Mon, 3 Aug 2015 13:33:24 +0000 (19:03 +0530)
Change-Id: I13ca5ad468167896b4c043358df474a9ecc469c6
Signed-off-by: nisanthmp <nisanth.mp@samsung.com>
src/cairo-gl-gradient.c

index 2f8c725..b204b0b 100644 (file)
@@ -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;
 }