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.
This commit is contained in:
parent
8eb73cd0e9
commit
ea4c3d5d5d
|
@ -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:
|
||||
|
||||
|
|
Loading…
Reference in New Issue