mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-30 00:58:55 -05:00
texture_cache: Implement Guard mechanism
This commit is contained in:
committed by
ReinUsesLisp
parent
7731a0e2d1
commit
a79831d9d0
@ -424,6 +424,8 @@ std::pair<bool, bool> RasterizerOpenGL::ConfigureFramebuffers(
|
||||
}
|
||||
current_framebuffer_config_state = fb_config_state;
|
||||
|
||||
texture_cache.Guard(true);
|
||||
|
||||
View depth_surface{};
|
||||
if (using_depth_fb) {
|
||||
depth_surface = texture_cache.GetDepthBufferSurface(preserve_contents);
|
||||
@ -500,6 +502,8 @@ std::pair<bool, bool> RasterizerOpenGL::ConfigureFramebuffers(
|
||||
depth_surface->GetSurfaceParams().type == SurfaceType::DepthStencil;
|
||||
}
|
||||
|
||||
texture_cache.Guard(false);
|
||||
|
||||
current_state.draw.draw_framebuffer = framebuffer_cache.GetFramebuffer(fbkey);
|
||||
SyncViewport(current_state);
|
||||
|
||||
|
Reference in New Issue
Block a user