wined3d: Allow color fills on FBO attachable surfaces in ffp_blit_supported().

This commit is contained in:
Henri Verbeet 2011-08-21 21:34:56 +02:00 committed by Alexandre Julliard
parent e1ab5f6e6b
commit 26484c9200

View file

@ -6367,12 +6367,20 @@ static BOOL ffp_blit_supported(const struct wined3d_gl_info *gl_info, enum wined
return FALSE;
case WINED3D_BLIT_OP_COLOR_FILL:
if (!(dst_usage & WINED3DUSAGE_RENDERTARGET))
if (wined3d_settings.offscreen_rendering_mode == ORM_FBO)
{
if (!((dst_format->flags & WINED3DFMT_FLAG_FBO_ATTACHABLE) || (dst_usage & WINED3DUSAGE_RENDERTARGET)))
return FALSE;
}
else if (!(dst_usage & WINED3DUSAGE_RENDERTARGET))
{
TRACE("Color fill not supported\n");
return FALSE;
}
/* FIXME: We should reject color fills on formats with fixups,
* but this would break P8 color fills for example. */
return TRUE;
case WINED3D_BLIT_OP_DEPTH_FILL: