mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-11-28 00:34:26 +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
|
||||
m_MetalTextureFactory.reset();
|
||||
#endif
|
||||
av_buffer_unref(&m_HwDeviceCtx);
|
||||
pl_vulkan_destroy(&m_Vulkan);
|
||||
|
||||
// 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);
|
||||
}
|
||||
|
||||
av_buffer_unref(&m_HwDeviceCtx);
|
||||
pl_vk_inst_destroy(&m_PlVkInstance);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user