Commit 5dd3b178 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

wined3d: Set a valid map pointer in adapter_gl_alloc_bo() if possible.

parent 83fc1807
......@@ -4646,6 +4646,18 @@ static bool adapter_gl_alloc_bo(struct wined3d_device *device, struct wined3d_re
return false;
}
if (bo_gl->memory)
{
struct wined3d_allocator_chunk_gl *chunk = wined3d_allocator_chunk_gl(bo_gl->memory->chunk);
wined3d_allocator_chunk_gl_lock(chunk);
if ((bo_gl->b.map_ptr = chunk->c.map_ptr))
++chunk->c.map_count;
wined3d_allocator_chunk_gl_unlock(chunk);
}
addr->buffer_object = &bo_gl->b;
addr->addr = NULL;
......
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