VideoBackends:Vulkan: Don't try to present if swapchain acquire failed
This commit is contained in:
1 parent
c7cbac538a
commit
7e1a9490c0
18 files changed
+64
-31
No files matched your search
@@ -447,7 +447,7 @@ void Metal::Gfx::DispatchComputeShader(const AbstractShader* shader, //
|
||||
}
|
||||
}
|
||||
|
||||
void Metal::Gfx::BindBackbuffer(const ClearColor& clear_color)
|
||||
bool Metal::Gfx::BindBackbuffer(const ClearColor& clear_color)
|
||||
{
|
||||
@autoreleasepool
|
||||
{
|
||||
@@ -456,6 +456,7 @@ void Metal::Gfx::BindBackbuffer(const ClearColor& clear_color)
|
||||
m_drawable = MRCRetain([m_layer nextDrawable]);
|
||||
m_backbuffer->UpdateBackbufferTexture([m_drawable texture]);
|
||||
SetAndClearFramebuffer(m_backbuffer.get(), clear_color);
|
||||
return m_drawable != nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user