mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 05:40:01 -06: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:
@ -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()
|
||||
|
Reference in New Issue
Block a user