diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-03-31 10:51:56 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-03-31 10:51:56 +0200 |
commit | 1c5e2b60a76a473022b8cb7e7b2fcb99f72e9eab (patch) | |
tree | b687a6a30bff5c5fad1b2180763c4bf2e0882c3d /src/video_core/renderer_opengl/gl_rasterizer.cpp | |
parent | Merge pull request #3566 from ReinUsesLisp/vk-wrapper-part1 (diff) | |
download | yuzu-1c5e2b60a76a473022b8cb7e7b2fcb99f72e9eab.tar yuzu-1c5e2b60a76a473022b8cb7e7b2fcb99f72e9eab.tar.gz yuzu-1c5e2b60a76a473022b8cb7e7b2fcb99f72e9eab.tar.bz2 yuzu-1c5e2b60a76a473022b8cb7e7b2fcb99f72e9eab.tar.lz yuzu-1c5e2b60a76a473022b8cb7e7b2fcb99f72e9eab.tar.xz yuzu-1c5e2b60a76a473022b8cb7e7b2fcb99f72e9eab.tar.zst yuzu-1c5e2b60a76a473022b8cb7e7b2fcb99f72e9eab.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index 31add708f..346feeb2f 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -386,11 +386,14 @@ void RasterizerOpenGL::ConfigureClearFramebuffer(bool using_color_fb, bool using texture_cache.GuardRenderTargets(true); View color_surface; if (using_color_fb) { - color_surface = texture_cache.GetColorBufferSurface(regs.clear_buffers.RT, false); + const std::size_t index = regs.clear_buffers.RT; + color_surface = texture_cache.GetColorBufferSurface(index, true); + texture_cache.MarkColorBufferInUse(index); } View depth_surface; if (using_depth_fb || using_stencil_fb) { - depth_surface = texture_cache.GetDepthBufferSurface(false); + depth_surface = texture_cache.GetDepthBufferSurface(true); + texture_cache.MarkDepthBufferInUse(); } texture_cache.GuardRenderTargets(false); |