Henri Verbeet : wined3d: Prefer bind flags over usage flags in ffp_blit_supported().
Alexandre Julliard
julliard at winehq.org
Thu Nov 1 16:33:52 CDT 2018
Module: wine
Branch: master
Commit: ae0f03bac5963aa2a72fde36d627a475bb02d048
URL: https://source.winehq.org/git/wine.git/?a=commit;h=ae0f03bac5963aa2a72fde36d627a475bb02d048
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Thu Nov 1 11:25:29 2018 +0330
wined3d: Prefer bind flags over usage flags in ffp_blit_supported().
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/wined3d/surface.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index e419097..133055b 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -2016,7 +2016,7 @@ static BOOL ffp_blit_supported(enum wined3d_blit_op blit_op, const struct wined3
}
}
- if (!(dst_resource->usage & WINED3DUSAGE_RENDERTARGET))
+ if (!(dst_resource->bind_flags & WINED3D_BIND_RENDER_TARGET))
{
TRACE("Can only blit to render targets.\n");
return FALSE;
More information about the wine-cvs
mailing list