Commit 1eba5fd9 authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

wined3d: Allow FFP blits to non-render targets with the 'none' shader backend.

In the same vein as 6247bee4; avoids infinite recursion in the blitter. Triggered by the ddraw tests.
parent 87937d61
...@@ -5832,8 +5832,17 @@ static bool ffp_blit_supported(enum wined3d_blit_op blit_op, const struct wined3 ...@@ -5832,8 +5832,17 @@ static bool ffp_blit_supported(enum wined3d_blit_op blit_op, const struct wined3
if (!(dst_resource->bind_flags & WINED3D_BIND_RENDER_TARGET)) if (!(dst_resource->bind_flags & WINED3D_BIND_RENDER_TARGET))
{ {
TRACE("Can only blit to render targets.\n"); if (dst_format->id == src_format->id && dst_location == WINED3D_LOCATION_DRAWABLE)
return false; {
if (context->device->shader_backend == &none_shader_backend)
WARN("Claiming !render_target support because of no shader backend.\n");
return true;
}
else
{
TRACE("Can only blit to render targets.\n");
return false;
}
} }
return true; return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment