From bb69e5cd2f6ad36da1b5eb799059525d7ebffdce Mon Sep 17 00:00:00 2001 From: Matt Borgerson Date: Fri, 26 Jul 2024 17:21:01 -0700 Subject: [PATCH] nv2a/vk: Finalize more display state --- hw/xbox/nv2a/pgraph/vk/display.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hw/xbox/nv2a/pgraph/vk/display.c b/hw/xbox/nv2a/pgraph/vk/display.c index 824c1fa2a1..53dcb377b3 100644 --- a/hw/xbox/nv2a/pgraph/vk/display.c +++ b/hw/xbox/nv2a/pgraph/vk/display.c @@ -317,6 +317,12 @@ static void destroy_display_pipeline(PGRAPHState *pg) vkDestroyPipeline(r->device, r->display.pipeline, NULL); r->display.pipeline = VK_NULL_HANDLE; + + vkDestroyPipelineLayout(r->device, r->display.pipeline_layout, NULL); + r->display.pipeline_layout = VK_NULL_HANDLE; + + pgraph_vk_destroy_shader_module(r, r->display.display_frag); + r->display.display_frag = NULL; } static void create_frame_buffer(PGRAPHState *pg)