Commit a55d3842 authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

wined3d: Don't take the upload path for blits to formats requiring conversion.

parent c50090cb
...@@ -3716,6 +3716,8 @@ HRESULT wined3d_surface_blt(struct wined3d_surface *dst_surface, const RECT *dst ...@@ -3716,6 +3716,8 @@ HRESULT wined3d_surface_blt(struct wined3d_surface *dst_surface, const RECT *dst
TRACE("Not doing upload because of scaling.\n"); TRACE("Not doing upload because of scaling.\n");
else if (convert) else if (convert)
TRACE("Not doing upload because of format conversion.\n"); 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 else
{ {
POINT dst_point = {dst_rect->left, dst_rect->top}; POINT dst_point = {dst_rect->left, dst_rect->top};
......
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