[PATCH 2/5] wined3d: Get rid of the broken render target check for surface_blt_special().
Henri Verbeet
hverbeet at codeweavers.com
Tue Sep 24 02:48:45 CDT 2013
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.
---
dlls/wined3d/surface.c | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index c61f589..9d7accd 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -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:
--
1.7.10.4
More information about the wine-patches
mailing list