Commit 86a0f486 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

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

parent 5731069a
......@@ -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)
{
......
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