mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
VideoBackends:Vulkan: Don't try to present if swapchain acquire failed
This commit is contained in:
@ -38,6 +38,7 @@ public:
|
||||
u32 GetWidth() const { return m_width; }
|
||||
u32 GetHeight() const { return m_height; }
|
||||
u32 GetCurrentImageIndex() const { return m_current_swap_chain_image_index; }
|
||||
bool IsCurrentImageValid() const { return m_current_swap_chain_image_is_valid; }
|
||||
VkImage GetCurrentImage() const
|
||||
{
|
||||
return m_swap_chain_images[m_current_swap_chain_image_index].image;
|
||||
@ -98,6 +99,7 @@ private:
|
||||
bool m_fullscreen_supported = false;
|
||||
bool m_current_fullscreen_state = false;
|
||||
bool m_next_fullscreen_state = false;
|
||||
bool m_current_swap_chain_image_is_valid = false;
|
||||
|
||||
VkSwapchainKHR m_swap_chain = VK_NULL_HANDLE;
|
||||
std::vector<SwapChainImage> m_swap_chain_images;
|
||||
|
Reference in New Issue
Block a user