d3d9: Prefer bind flags over usage flags in d3d9_device_StretchRect().

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2018-11-05 15:13:55 +03:30 committed by Alexandre Julliard
parent 5731069add
commit 86a0f486c6
1 changed files with 2 additions and 2 deletions

View File

@ -1668,13 +1668,13 @@ static HRESULT WINAPI d3d9_device_StretchRect(IDirect3DDevice9Ex *iface, IDirect
goto done;
}
if (dst->texture && !(dst_desc.usage & (WINED3DUSAGE_RENDERTARGET | WINED3DUSAGE_DEPTHSTENCIL)))
if (dst->texture && !(dst_desc.bind_flags & (WINED3D_BIND_RENDER_TARGET | WINED3D_BIND_DEPTH_STENCIL)))
{
WARN("Destination is a regular texture.\n");
goto done;
}
if (src_desc.usage & WINED3DUSAGE_DEPTHSTENCIL)
if (src_desc.bind_flags & WINED3D_BIND_DEPTH_STENCIL)
{
if (device->in_scene)
{