HostDisplay: Fix cursor texture leak

This commit is contained in:
Stenzek
2023-02-07 20:06:29 +10:00
parent 9e9b0e223f
commit befbc7bc2e
6 changed files with 14 additions and 1 deletions

View File

@ -633,6 +633,8 @@ bool D3D11HostDisplay::CreateResources()
void D3D11HostDisplay::DestroyResources()
{
HostDisplay::DestroyResources();
m_post_processing_chain.ClearStages();
m_post_processing_input_texture.Destroy();
m_post_processing_stages.clear();

View File

@ -545,6 +545,8 @@ bool D3D12HostDisplay::CreateResources()
void D3D12HostDisplay::DestroyResources()
{
HostDisplay::DestroyResources();
m_post_processing_cbuffer.Destroy(false);
m_post_processing_chain.ClearStages();
m_post_processing_input_texture.Destroy();

View File

@ -617,6 +617,8 @@ void main()
void OpenGLHostDisplay::DestroyResources()
{
HostDisplay::DestroyResources();
m_post_processing_chain.ClearStages();
m_post_processing_input_texture.Destroy();
m_post_processing_ubo.reset();

View File

@ -545,6 +545,8 @@ void main()
void VulkanHostDisplay::DestroyResources()
{
HostDisplay::DestroyResources();
Vulkan::Util::SafeDestroyPipelineLayout(m_post_process_pipeline_layout);
Vulkan::Util::SafeDestroyPipelineLayout(m_post_process_ubo_pipeline_layout);
Vulkan::Util::SafeDestroyDescriptorSetLayout(m_post_process_descriptor_set_layout);