mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-07 01:56:23 +00:00
VideoBackends:Vulkan: Don't try to present if swapchain acquire failed
This commit is contained in:
parent
c7cbac538a
commit
7e1a9490c0
18 changed files with 64 additions and 31 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue