[PATCH 3/5] wined3d: Mappable surfaces allow CPU access.
Stefan Dösinger
stefan at codeweavers.com
Thu Oct 3 17:03:19 CDT 2013
---
dlls/wined3d/surface.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 1f0fb94..192163c 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -6860,6 +6860,9 @@ static HRESULT surface_init(struct wined3d_surface *surface, UINT alignment, UIN
return hr;
}
+ if (flags & WINED3D_SURFACE_MAPPABLE)
+ surface->resource.access_flags |= WINED3D_RESOURCE_ACCESS_CPU;
+
/* "Standalone" surface. */
surface_set_container(surface, NULL);
--
1.8.1.5
More information about the wine-patches
mailing list