Module: wine Branch: master Commit: c3da4ce08800d831e2419b1078b2ec0a7c7e8f17 URL: http://source.winehq.org/git/wine.git/?a=commit;h=c3da4ce08800d831e2419b1078...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Wed Nov 13 10:12:10 2013 +0100
wined3d: Don't map the destination surface read-only in surface_convert_format().
---
dlls/wined3d/surface.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
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);