[PATCH 5/5] wined3d: Don't map the destination surface read-only in surface_convert_format().
Henri Verbeet
hverbeet at codeweavers.com
Wed Nov 13 03:12:10 CST 2013
---
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 03403bd..f8c7cf8 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -3348,7 +3348,7 @@ static struct wined3d_texture *surface_convert_format(struct wined3d_surface *so
wined3d_texture_decref(ret);
return NULL;
}
- if (FAILED(wined3d_surface_map(dst, &dst_map, NULL, WINED3D_MAP_READONLY)))
+ if (FAILED(wined3d_surface_map(dst, &dst_map, NULL, 0)))
{
ERR("Failed to lock the destination surface.\n");
wined3d_surface_unmap(source);
--
1.7.10.4
More information about the wine-patches
mailing list