diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-05-14 01:14:02 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-06-21 02:36:12 +0200 |
commit | a79831d9d02f7c42d82ea36210cac7952a3ef16e (patch) | |
tree | ee201e6957b5018159eafe01b6378c11fef8c4cf /src/video_core/renderer_opengl/gl_rasterizer.cpp | |
parent | texture_cache: General Fixes (diff) | |
download | yuzu-a79831d9d02f7c42d82ea36210cac7952a3ef16e.tar yuzu-a79831d9d02f7c42d82ea36210cac7952a3ef16e.tar.gz yuzu-a79831d9d02f7c42d82ea36210cac7952a3ef16e.tar.bz2 yuzu-a79831d9d02f7c42d82ea36210cac7952a3ef16e.tar.lz yuzu-a79831d9d02f7c42d82ea36210cac7952a3ef16e.tar.xz yuzu-a79831d9d02f7c42d82ea36210cac7952a3ef16e.tar.zst yuzu-a79831d9d02f7c42d82ea36210cac7952a3ef16e.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index 8218c5143..afacc3fbd 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -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); |