wined3d: Allow copies between compatible formats in wined3d_device_copy_resource().
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
e196ecd940
commit
61658f445b
|
@ -4029,9 +4029,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("Resource formats %s and %s are incompatible.\n",
|
||||
debug_d3dformat(dst_resource->format->id),
|
||||
debug_d3dformat(src_resource->format->id));
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue