mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-11 02:28:51 +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
|
@ -101,7 +101,10 @@ public:
|
|||
// Binds the backbuffer for rendering. The buffer will be cleared immediately after binding.
|
||||
// This is where any window size changes are detected, therefore m_backbuffer_width and/or
|
||||
// m_backbuffer_height may change after this function returns.
|
||||
virtual void BindBackbuffer(const ClearColor& clear_color = {}) {}
|
||||
// If this returns false, a problem occurred binding the backbuffer.
|
||||
// Don't render anything to it, but still call `PresentBackbuffer`, which will reset any
|
||||
// per-frame resources and prepare for the next frame.
|
||||
virtual bool BindBackbuffer(const ClearColor& clear_color = {}) { return true; }
|
||||
|
||||
// Presents the backbuffer to the window system, or "swaps buffers".
|
||||
virtual void PresentBackbuffer() {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue