wined3d: Do not remove invalid BO users from the list when destroying views.
Fixes: b2f13103d7
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55540
This commit is contained in:
parent
68325b3858
commit
f377723773
2 changed files with 2 additions and 2 deletions
|
@ -4887,7 +4887,7 @@ static void wined3d_view_gl_destroy_object(void *object)
|
|||
checkGLcall("delete resources");
|
||||
context_release(context);
|
||||
}
|
||||
if (ctx->bo_user)
|
||||
if (ctx->bo_user && ctx->bo_user->valid)
|
||||
list_remove(&ctx->bo_user->entry);
|
||||
|
||||
heap_free(ctx->object);
|
||||
|
|
|
@ -1467,7 +1467,7 @@ static void wined3d_view_vk_destroy_object(void *object)
|
|||
TRACE("Destroyed image view 0x%s.\n", wine_dbgstr_longlong(*ctx->vk_image_view));
|
||||
}
|
||||
}
|
||||
if (ctx->bo_user)
|
||||
if (ctx->bo_user && ctx->bo_user->valid)
|
||||
list_remove(&ctx->bo_user->entry);
|
||||
if (ctx->vk_counter_bo && ctx->vk_counter_bo->vk_buffer)
|
||||
wined3d_context_vk_destroy_bo(wined3d_context_vk(context), ctx->vk_counter_bo);
|
||||
|
|
Loading…
Add table
Reference in a new issue