1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

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:
Zebediah Figura 2023-12-29 19:07:39 -06:00 committed by Alexandre Julliard
parent 68325b3858
commit f377723773
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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);