Commit ea4c3d5d authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Get rid of the broken render target check for surface_blt_special().

This used to work out in practice because swapchain surfaces were always considered render targets, but that's no longer true. We can just remove the check, because surface_blt_special() already contains a proper check itself anyway.
parent 8eb73cd0
......@@ -6777,15 +6777,9 @@ HRESULT CDECL wined3d_surface_blt(struct wined3d_surface *dst_surface, const REC
}
fallback:
/* Special cases for render targets. */
if ((dst_surface->resource.usage & WINED3DUSAGE_RENDERTARGET)
|| (src_surface && (src_surface->resource.usage & WINED3DUSAGE_RENDERTARGET)))
{
if (SUCCEEDED(surface_blt_special(dst_surface, &dst_rect,
src_surface, &src_rect, flags, fx, filter)))
return WINED3D_OK;
}
if (SUCCEEDED(surface_blt_special(dst_surface, &dst_rect, src_surface, &src_rect, flags, fx, filter)))
return WINED3D_OK;
cpu:
......
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