summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-03-23 20:52:14 +0100
committerbunnei <bunneidev@gmail.com>2018-03-23 20:52:14 +0100
commit0f8401906b9616f853bb8baf43424dc354f736e2 (patch)
tree1a1e7d4087bc2c67ab4f4b9d9809f401ab977754 /src
parentrenderer_opengl: Fixes for properly flushing & rendering the framebuffer. (diff)
downloadyuzu-0f8401906b9616f853bb8baf43424dc354f736e2.tar
yuzu-0f8401906b9616f853bb8baf43424dc354f736e2.tar.gz
yuzu-0f8401906b9616f853bb8baf43424dc354f736e2.tar.bz2
yuzu-0f8401906b9616f853bb8baf43424dc354f736e2.tar.lz
yuzu-0f8401906b9616f853bb8baf43424dc354f736e2.tar.xz
yuzu-0f8401906b9616f853bb8baf43424dc354f736e2.tar.zst
yuzu-0f8401906b9616f853bb8baf43424dc354f736e2.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_opengl/renderer_opengl.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp
index 4628f6db0..1a24855d7 100644
--- a/src/video_core/renderer_opengl/renderer_opengl.cpp
+++ b/src/video_core/renderer_opengl/renderer_opengl.cpp
@@ -141,11 +141,10 @@ void RendererOpenGL::LoadFBToScreenInfo(const Tegra::FramebufferConfig& framebuf
const u64 size_in_bytes{framebuffer.stride * framebuffer.height * bytes_per_pixel};
const VAddr framebuffer_addr{framebuffer.address + framebuffer.offset};
- // TODO(bunnei): The framebuffer region should only be flushed and invalidated if it is
- // written to, not every frame. When we find the right place for this, the below line can be
- // removed.
+ // TODO(bunnei): The framebuffer region should only be invalidated if it is written to, not
+ // every frame. When we find the right place for this, the below line can be removed.
Memory::RasterizerFlushVirtualRegion(framebuffer_addr, size_in_bytes,
- Memory::FlushMode::FlushAndInvalidate);
+ Memory::FlushMode::Invalidate);
// Framebuffer orientation handling
framebuffer_transform_flags = framebuffer.transform_flags;