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

wined3d: Do not remove invalid BO users from the list when destroying views.

parent 68325b38
...@@ -4887,7 +4887,7 @@ static void wined3d_view_gl_destroy_object(void *object) ...@@ -4887,7 +4887,7 @@ static void wined3d_view_gl_destroy_object(void *object)
checkGLcall("delete resources"); checkGLcall("delete resources");
context_release(context); context_release(context);
} }
if (ctx->bo_user) if (ctx->bo_user && ctx->bo_user->valid)
list_remove(&ctx->bo_user->entry); list_remove(&ctx->bo_user->entry);
heap_free(ctx->object); heap_free(ctx->object);
......
...@@ -1467,7 +1467,7 @@ static void wined3d_view_vk_destroy_object(void *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)); 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); list_remove(&ctx->bo_user->entry);
if (ctx->vk_counter_bo && ctx->vk_counter_bo->vk_buffer) if (ctx->vk_counter_bo && ctx->vk_counter_bo->vk_buffer)
wined3d_context_vk_destroy_bo(wined3d_context_vk(context), ctx->vk_counter_bo); wined3d_context_vk_destroy_bo(wined3d_context_vk(context), ctx->vk_counter_bo);
......
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