diff options
author | bunnei <bunneidev@gmail.com> | 2018-10-18 02:32:29 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-10-19 04:41:12 +0200 |
commit | 6b333d862bf220e912364dfff2e337449a5e0e0a (patch) | |
tree | 70e9b778add738860c8d5334c767afa469142d37 /src/video_core/renderer_opengl/gl_rasterizer.cpp | |
parent | Merge pull request #1523 from lioncash/lock (diff) | |
download | yuzu-6b333d862bf220e912364dfff2e337449a5e0e0a.tar yuzu-6b333d862bf220e912364dfff2e337449a5e0e0a.tar.gz yuzu-6b333d862bf220e912364dfff2e337449a5e0e0a.tar.bz2 yuzu-6b333d862bf220e912364dfff2e337449a5e0e0a.tar.lz yuzu-6b333d862bf220e912364dfff2e337449a5e0e0a.tar.xz yuzu-6b333d862bf220e912364dfff2e337449a5e0e0a.tar.zst yuzu-6b333d862bf220e912364dfff2e337449a5e0e0a.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index 468253033..3daccf82f 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -659,6 +659,12 @@ void RasterizerOpenGL::FlushAndInvalidateRegion(VAddr addr, u64 size) { bool RasterizerOpenGL::AccelerateSurfaceCopy(const Tegra::Engines::Fermi2D::Regs::Surface& src, const Tegra::Engines::Fermi2D::Regs::Surface& dst) { MICROPROFILE_SCOPE(OpenGL_Blits); + + if (Settings::values.use_accurate_gpu_emulation) { + // Skip the accelerated copy and perform a slow but more accurate copy + return false; + } + res_cache.FermiCopySurface(src, dst); return true; } |