mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-21 12:00:41 +02:00
zink: unref ctx->framebuffer on context destroy
we aren't guaranteed to get a final set_framebuffer_state(NULL) to do this for us Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9434>
This commit is contained in:
parent
8937b5f268
commit
279ef45db5
1 changed files with 1 additions and 0 deletions
|
|
@ -80,6 +80,7 @@ zink_context_destroy(struct pipe_context *pctx)
|
|||
debug_printf("vkQueueWaitIdle failed\n");
|
||||
|
||||
util_blitter_destroy(ctx->blitter);
|
||||
zink_framebuffer_reference(screen, &ctx->framebuffer, NULL);
|
||||
|
||||
pipe_resource_reference(&ctx->dummy_vertex_buffer, NULL);
|
||||
pipe_resource_reference(&ctx->dummy_xfb_buffer, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue