mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
Vulkan: Fix possible mismatch between EFB framebuffer and render pass
This could happen when changing MSAA settings or internal resolution at runtime.
This commit is contained in:
parent
0525726338
commit
4997fbce44
4 changed files with 15 additions and 29 deletions
|
@ -318,17 +318,15 @@ void FramebufferManager::DestroyEFBFramebuffer()
|
|||
m_efb_resolve_depth_texture.reset();
|
||||
}
|
||||
|
||||
void FramebufferManager::ResizeEFBTextures()
|
||||
void FramebufferManager::RecreateEFBFramebuffer()
|
||||
{
|
||||
DestroyEFBFramebuffer();
|
||||
if (!CreateEFBFramebuffer())
|
||||
PanicAlert("Failed to create EFB textures");
|
||||
}
|
||||
|
||||
void FramebufferManager::RecreateRenderPass()
|
||||
{
|
||||
if (!CreateEFBRenderPasses())
|
||||
PanicAlert("Failed to create EFB render pass");
|
||||
|
||||
if (!CreateEFBFramebuffer())
|
||||
PanicAlert("Failed to create EFB textures");
|
||||
}
|
||||
|
||||
void FramebufferManager::RecompileShaders()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue