From: Józef Kucia Subject: [PATCH v2 5/6] wined3d: Allow copying resource data between compatible formats. Message-Id: <20170317121204.29413-1-jkucia@codeweavers.com> Date: Fri, 17 Mar 2017 13:12:03 +0100 Signed-off-by: Józef Kucia --- Version 2: A grammar fix in the subject. --- dlls/wined3d/device.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 033c490..5f7ef5e 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -3869,9 +3869,10 @@ void CDECL wined3d_device_copy_resource(struct wined3d_device *device, return; } - if (src_resource->format->id != dst_resource->format->id) + if (src_resource->format->typeless_id != dst_resource->format->typeless_id + || (!src_resource->format->typeless_id && src_resource->format->id != dst_resource->format->id)) { - WARN("Resource formats (%s / %s) don't match.\n", + WARN("Incompatible formats (%s / %s).\n", debug_d3dformat(dst_resource->format->id), debug_d3dformat(src_resource->format->id)); return; -- 2.10.2