Zebediah Figura : wined3d: Do not try to unmap already unmapped BOs in wined3d_buffer_update_sub_resource().
Alexandre Julliard
julliard at winehq.org
Fri Jul 22 15:38:24 CDT 2022
Module: wine
Branch: master
Commit: f0706faae677b2fa5551a046606447d18144cfb7
URL: https://gitlab.winehq.org/wine/wine/-/commit/f0706faae677b2fa5551a046606447d18144cfb7
Author: Zebediah Figura <zfigura at codeweavers.com>
Date: Wed Jul 20 13:30:23 2022 -0500
wined3d: Do not try to unmap already unmapped BOs in wined3d_buffer_update_sub_resource().
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53372
---
dlls/wined3d/buffer.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/wined3d/buffer.c b/dlls/wined3d/buffer.c
index 2131123bf44..a3c725136dd 100644
--- a/dlls/wined3d/buffer.c
+++ b/dlls/wined3d/buffer.c
@@ -1185,7 +1185,8 @@ void wined3d_buffer_update_sub_resource(struct wined3d_buffer *buffer, struct wi
*/
range.offset = offset;
range.size = size;
- wined3d_context_unmap_bo_address(context, (const struct wined3d_bo_address *)&upload_bo->addr, 1, &range);
+ if (upload_bo->addr.buffer_object->map_ptr)
+ wined3d_context_unmap_bo_address(context, (const struct wined3d_bo_address *)&upload_bo->addr, 1, &range);
}
else
{
More information about the wine-cvs
mailing list