summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFernandoS27 <fsahmkow27@gmail.com>2018-10-25 00:44:37 +0200
committerFernandoS27 <fsahmkow27@gmail.com>2018-10-29 00:00:00 +0100
commitdc85e3bff16c375a909617908c9c7b82ec61cbdd (patch)
treee00ff8a53284ec58333cc7d0429e82984b4d3411 /src
parentImplement Mipmaps (diff)
downloadyuzu-dc85e3bff16c375a909617908c9c7b82ec61cbdd.tar
yuzu-dc85e3bff16c375a909617908c9c7b82ec61cbdd.tar.gz
yuzu-dc85e3bff16c375a909617908c9c7b82ec61cbdd.tar.bz2
yuzu-dc85e3bff16c375a909617908c9c7b82ec61cbdd.tar.lz
yuzu-dc85e3bff16c375a909617908c9c7b82ec61cbdd.tar.xz
yuzu-dc85e3bff16c375a909617908c9c7b82ec61cbdd.tar.zst
yuzu-dc85e3bff16c375a909617908c9c7b82ec61cbdd.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer_cache.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
index 70d1ebda5..28f17bc75 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
@@ -1325,6 +1325,8 @@ void RasterizerCacheOpenGL::AccurateCopySurface(const Surface& src_surface,
const Surface& dst_surface) {
const auto& src_params{src_surface->GetSurfaceParams()};
const auto& dst_params{dst_surface->GetSurfaceParams()};
+ auto* start = Memory::GetPointer(src_params.addr);
+ std::fill(start, start + dst_params.MemorySize(), 0);
FlushRegion(src_params.addr, dst_params.MemorySize());
LoadSurface(dst_surface);
}