wined3d: Initialize map_ptr to NULL in wined3d_context_vk_create_slab_bo().

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2022-02-09 20:27:34 -06:00 committed by Alexandre Julliard
parent 27df7f518c
commit 06e178e87f
1 changed files with 1 additions and 0 deletions

View File

@ -456,6 +456,7 @@ static bool wined3d_context_vk_create_slab_bo(struct wined3d_context_vk *context
*bo = slab->bo;
bo->memory = NULL;
bo->slab = slab;
bo->b.map_ptr = NULL;
bo->b.buffer_offset = idx * object_size;
bo->b.memory_offset = slab->bo.b.memory_offset + bo->b.buffer_offset;
bo->size = size;