diff options
author | bunnei <bunneidev@gmail.com> | 2018-12-15 06:20:00 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2019-02-07 03:54:21 +0100 |
commit | dd1aab5446cc043fe001f6cd118954a21edc9ad4 (patch) | |
tree | 1a27cb416c5a7f480e62be180d6d2d5487ec46d1 /src/video_core/renderer_opengl/gl_rasterizer.cpp | |
parent | Merge pull request #2091 from FearlessTobi/port-4603 (diff) | |
download | yuzu-dd1aab5446cc043fe001f6cd118954a21edc9ad4.tar yuzu-dd1aab5446cc043fe001f6cd118954a21edc9ad4.tar.gz yuzu-dd1aab5446cc043fe001f6cd118954a21edc9ad4.tar.bz2 yuzu-dd1aab5446cc043fe001f6cd118954a21edc9ad4.tar.lz yuzu-dd1aab5446cc043fe001f6cd118954a21edc9ad4.tar.xz yuzu-dd1aab5446cc043fe001f6cd118954a21edc9ad4.tar.zst yuzu-dd1aab5446cc043fe001f6cd118954a21edc9ad4.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index 974ca6a20..12d876120 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -778,15 +778,11 @@ void RasterizerOpenGL::FlushAndInvalidateRegion(VAddr addr, u64 size) { } bool RasterizerOpenGL::AccelerateSurfaceCopy(const Tegra::Engines::Fermi2D::Regs::Surface& src, - const Tegra::Engines::Fermi2D::Regs::Surface& dst) { + const Tegra::Engines::Fermi2D::Regs::Surface& dst, + const MathUtil::Rectangle<u32>& src_rect, + const MathUtil::Rectangle<u32>& dst_rect) { 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); + res_cache.FermiCopySurface(src, dst, src_rect, dst_rect); return true; } |