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:
parent
5731069add
commit
86a0f486c6
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue