From f0cc2ef2bd8c05f2da0547de0b8f2f85e640143b Mon Sep 17 00:00:00 2001 From: Zebediah Figura Date: Wed, 29 Sep 2021 17:15:23 -0500 Subject: [PATCH] wined3d: Call the unmap_upload_bo callback in wined3d_device_context_emit_update_sub_resource(). We will need to mark the resource as no longer mapped, from the client's perspective. Signed-off-by: Zebediah Figura Signed-off-by: Henri Verbeet Signed-off-by: Alexandre Julliard --- dlls/wined3d/cs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/wined3d/cs.c b/dlls/wined3d/cs.c index 93d810b9191..77d5394b169 100644 --- a/dlls/wined3d/cs.c +++ b/dlls/wined3d/cs.c @@ -2759,6 +2759,7 @@ void wined3d_device_context_emit_update_sub_resource(struct wined3d_device_conte const void *data, unsigned int row_pitch, unsigned int slice_pitch) { struct wined3d_cs_update_sub_resource *op; + struct wined3d_box dummy_box; struct upload_bo bo; void *map_ptr; @@ -2767,6 +2768,7 @@ void wined3d_device_context_emit_update_sub_resource(struct wined3d_device_conte { wined3d_format_copy_data(resource->format, data, row_pitch, slice_pitch, map_ptr, row_pitch, slice_pitch, box->right - box->left, box->bottom - box->top, box->back - box->front); + context->ops->unmap_upload_bo(context, resource, sub_resource_idx, &dummy_box, &bo); wined3d_device_context_upload_bo(context, resource, sub_resource_idx, box, &bo, row_pitch, slice_pitch); return; }