From 2818eb2199a56a38a2cc9a93573d642b8f72c7ce Mon Sep 17 00:00:00 2001 From: Stenzek Date: Mon, 18 Sep 2023 22:38:15 +1000 Subject: [PATCH] GPU/HW: Fix copy pipeline not getting destroyed --- src/core/gpu_hw.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/gpu_hw.cpp b/src/core/gpu_hw.cpp index 286c4cbbe..57c4ae0cc 100644 --- a/src/core/gpu_hw.cpp +++ b/src/core/gpu_hw.cpp @@ -885,9 +885,7 @@ bool GPU_HW::CompilePipelines() std::unique_ptr fullscreen_quad_vertex_shader = g_gpu_device->CreateShader(GPUShaderStage::Vertex, shadergen.GenerateScreenQuadVertexShader()); - std::unique_ptr uv_quad_vertex_shader = - g_gpu_device->CreateShader(GPUShaderStage::Vertex, shadergen.GenerateUVQuadVertexShader()); - if (!fullscreen_quad_vertex_shader || !uv_quad_vertex_shader) + if (!fullscreen_quad_vertex_shader) return false; progress.Increment(); @@ -1157,6 +1155,8 @@ void GPU_HW::DestroyPipelines() destroy(m_downsample_composite_pass_pipeline); m_downsample_composite_sampler.reset(); + m_copy_pipeline.reset(); + m_display_pipelines.enumerate(destroy); }