[PATCH 3/5] d3d9: Prefer bind flags over usage flags in d3d9_device_StretchRect().
Henri Verbeet
hverbeet at codeweavers.com
Mon Nov 5 05:43:55 CST 2018
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
---
dlls/d3d9/device.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/d3d9/device.c b/dlls/d3d9/device.c
index d4f5a4352ce..e5135496453 100644
--- a/dlls/d3d9/device.c
+++ b/dlls/d3d9/device.c
@@ -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)
{
--
2.11.0
More information about the wine-devel
mailing list