summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2020-04-15 05:21:00 +0200
committerGitHub <noreply@github.com>2020-04-15 05:21:00 +0200
commitdaddbeffd1f10f3ae456ffcf04bc7bb33251f9db (patch)
treea6af3853723b7a753067a614c5ac6c2d1e1a82dc /src
parentMerge pull request #3660 from bunnei/friend-blocked-users (diff)
downloadyuzu-daddbeffd1f10f3ae456ffcf04bc7bb33251f9db.tar
yuzu-daddbeffd1f10f3ae456ffcf04bc7bb33251f9db.tar.gz
yuzu-daddbeffd1f10f3ae456ffcf04bc7bb33251f9db.tar.bz2
yuzu-daddbeffd1f10f3ae456ffcf04bc7bb33251f9db.tar.lz
yuzu-daddbeffd1f10f3ae456ffcf04bc7bb33251f9db.tar.xz
yuzu-daddbeffd1f10f3ae456ffcf04bc7bb33251f9db.tar.zst
yuzu-daddbeffd1f10f3ae456ffcf04bc7bb33251f9db.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/texture_cache/texture_cache.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h
index cfc7fe6e9..4edd4313b 100644
--- a/src/video_core/texture_cache/texture_cache.h
+++ b/src/video_core/texture_cache/texture_cache.h
@@ -509,7 +509,9 @@ private:
}
const auto& final_params = new_surface->GetSurfaceParams();
if (cr_params.type != final_params.type) {
- BufferCopy(current_surface, new_surface);
+ if (Settings::values.use_accurate_gpu_emulation) {
+ BufferCopy(current_surface, new_surface);
+ }
} else {
std::vector<CopyParams> bricks = current_surface->BreakDown(final_params);
for (auto& brick : bricks) {