mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-18 19:45:47 -04:00
HostDisplay: Fix cursor texture leak
This commit is contained in:
@ -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();
|
||||
|
@ -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();
|
||||
|
@ -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();
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user