summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-03-02 06:57:15 +0100
committerGitHub <noreply@github.com>2019-03-02 06:57:15 +0100
commit3c39b39bbc4363aeaf0a163d283b40c3d4453d49 (patch)
tree5ab901b3e667da4be131188df34050843a88e080 /src/video_core
parentMerge pull request #2178 from ReinUsesLisp/vk-buffer-cache (diff)
parentfuck git for ruining my day, I will learn but I will not forgive (diff)
downloadyuzu-3c39b39bbc4363aeaf0a163d283b40c3d4453d49.tar
yuzu-3c39b39bbc4363aeaf0a163d283b40c3d4453d49.tar.gz
yuzu-3c39b39bbc4363aeaf0a163d283b40c3d4453d49.tar.bz2
yuzu-3c39b39bbc4363aeaf0a163d283b40c3d4453d49.tar.lz
yuzu-3c39b39bbc4363aeaf0a163d283b40c3d4453d49.tar.xz
yuzu-3c39b39bbc4363aeaf0a163d283b40c3d4453d49.tar.zst
yuzu-3c39b39bbc4363aeaf0a163d283b40c3d4453d49.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer_cache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
index 5fdf1164d..b5a9722f9 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
@@ -966,7 +966,7 @@ Surface RasterizerCacheOpenGL::GetColorBufferSurface(std::size_t index, bool pre
const auto& regs{gpu.regs};
if (!gpu.dirty_flags.color_buffer[index]) {
- return last_color_buffers[index];
+ return current_color_buffers[index];
}
gpu.dirty_flags.color_buffer.reset(index);