mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-05-15 14:55:41 -04:00
VulkanHostDisplay: Don't choke when we lose the surface
This commit is contained in:
parent
26dff586f3
commit
a053f389bd
@ -118,7 +118,12 @@ void* VulkanHostDisplay::GetRenderContext() const
|
|||||||
|
|
||||||
bool VulkanHostDisplay::ChangeRenderWindow(const WindowInfo& new_wi)
|
bool VulkanHostDisplay::ChangeRenderWindow(const WindowInfo& new_wi)
|
||||||
{
|
{
|
||||||
Assert(!m_swap_chain);
|
if (new_wi.type == WindowInfo::Type::Surfaceless)
|
||||||
|
{
|
||||||
|
g_vulkan_context->ExecuteCommandBuffer(true);
|
||||||
|
m_swap_chain.reset();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
WindowInfo wi_copy(new_wi);
|
WindowInfo wi_copy(new_wi);
|
||||||
VkSurfaceKHR surface = Vulkan::SwapChain::CreateVulkanSurface(g_vulkan_context->GetVulkanInstance(), wi_copy);
|
VkSurfaceKHR surface = Vulkan::SwapChain::CreateVulkanSurface(g_vulkan_context->GetVulkanInstance(), wi_copy);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user