Remove unnecessary double clear when rasterizing a gradient