[PATCH 5/5] wined3d: Don't take the upload code path if the destination surface is onscreen.
Matteo Bruni
mbruni at codeweavers.com
Tue Sep 12 14:22:31 CDT 2017
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
---
dlls/wined3d/surface.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 608447f2cc..1d29a385b0 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -3709,7 +3709,8 @@ HRESULT wined3d_surface_blt(struct wined3d_surface *dst_surface, const RECT *dst
blit_op = WINED3D_BLIT_OP_COLOR_BLIT_ALPHATEST;
}
else if ((src_sub_resource->locations & WINED3D_LOCATION_SYSMEM)
- && !(dst_sub_resource->locations & WINED3D_LOCATION_SYSMEM))
+ && !(dst_sub_resource->locations & WINED3D_LOCATION_SYSMEM)
+ && wined3d_resource_is_offscreen(&dst_texture->resource))
{
/* Upload */
if (scale)
--
2.13.5
More information about the wine-patches
mailing list