[PATCH 5/5] wined3d: Don't take the upload path for blits to formats requiring conversion.

Matteo Bruni mbruni at codeweavers.com
Tue Sep 5 18:39:19 CDT 2017


Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
---
 dlls/wined3d/surface.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 11438c40c4..608447f2cc 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -3716,6 +3716,8 @@ HRESULT wined3d_surface_blt(struct wined3d_surface *dst_surface, const RECT *dst
             TRACE("Not doing upload because of scaling.\n");
         else if (convert)
             TRACE("Not doing upload because of format conversion.\n");
+        else if (dst_texture->resource.format->convert)
+            TRACE("Not doing upload because the destination format needs conversion.\n");
         else
         {
             POINT dst_point = {dst_rect->left, dst_rect->top};
-- 
2.13.5




More information about the wine-patches mailing list