On 12 April 2010 12:44, Roderick Colenbrander <thunderbird2k(a)gmail.com> wrote:
> + if (ffp_blit.blit_supported(&myDevice->adapter->gl_info, BLIT_OP_COLOR_FILL,
> + NULL, 0, 0, NULL,
> + &dst_rect, This->resource.usage, This->resource.pool, This->resource.format_desc))
> + {
> + return ffp_blit.color_fill(myDevice, This, &dst_rect, color);
> }
>
> - return ffp_blit.color_fill(myDevice, This, &dst_rect, color);
> + return cpu_blit.color_fill(myDevice, This, &dst_rect, color);
> }
> }
>
Going through struct blit_shader means that you should also check if
cpu_blit can do that operation.