mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-12-03 03:31:36 +00:00
Destroy the Vulkan hwcontext before the underlying objects
This commit is contained in:
1 parent
f295b02e81
commit
8ebffa5b5b
1 file changed
+1
-1
@@ -186,6 +186,7 @@ PlVkRenderer::~PlVkRenderer()
|
|||||||
#ifdef Q_OS_DARWIN
|
#ifdef Q_OS_DARWIN
|
||||||
m_MetalTextureFactory.reset();
|
m_MetalTextureFactory.reset();
|
||||||
#endif
|
#endif
|
||||||
|
av_buffer_unref(&m_HwDeviceCtx);
|
||||||
pl_vulkan_destroy(&m_Vulkan);
|
pl_vulkan_destroy(&m_Vulkan);
|
||||||
|
|
||||||
// This surface was created by SDL, so there's no libplacebo API to destroy it
|
// This surface was created by SDL, so there's no libplacebo API to destroy it
|
||||||
@@ -193,7 +194,6 @@ PlVkRenderer::~PlVkRenderer()
|
|||||||
fn_vkDestroySurfaceKHR(m_PlVkInstance->instance, m_VkSurface, nullptr);
|
fn_vkDestroySurfaceKHR(m_PlVkInstance->instance, m_VkSurface, nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
av_buffer_unref(&m_HwDeviceCtx);
|
|
||||||
pl_vk_inst_destroy(&m_PlVkInstance);
|
pl_vk_inst_destroy(&m_PlVkInstance);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user