Commit b0a24c3c authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

wined3d: Assert that the BO is mapped in unmap functions.

parent 1733f86d
......@@ -1064,6 +1064,8 @@ static void adapter_vk_unmap_bo_address(struct wined3d_context *context,
return;
bo = wined3d_bo_vk(data->buffer_object);
assert(bo->b.map_ptr);
if (!bo->b.coherent)
{
for (i = 0; i < range_count; ++i)
......
......@@ -3039,6 +3039,8 @@ void wined3d_context_gl_unmap_bo_address(struct wined3d_context_gl *context_gl,
return;
bo = wined3d_bo_gl(data->buffer_object);
assert(bo->b.map_ptr);
flush_bo_ranges(context_gl, wined3d_const_bo_address(data), range_count, ranges);
wined3d_bo_gl_unmap(bo, context_gl);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment