diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-05-24 17:59:23 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-06-21 02:38:33 +0200 |
commit | 92513541529e90f4f79a1f2c3f8ccf5a199e4c20 (patch) | |
tree | d686a78d8af4e41bf6a7c3fc2136e146b98f42e4 /src/video_core/texture_cache/texture_cache.h | |
parent | texture_cache: Only load on recycle with accurate GPU. (diff) | |
download | yuzu-92513541529e90f4f79a1f2c3f8ccf5a199e4c20.tar yuzu-92513541529e90f4f79a1f2c3f8ccf5a199e4c20.tar.gz yuzu-92513541529e90f4f79a1f2c3f8ccf5a199e4c20.tar.bz2 yuzu-92513541529e90f4f79a1f2c3f8ccf5a199e4c20.tar.lz yuzu-92513541529e90f4f79a1f2c3f8ccf5a199e4c20.tar.xz yuzu-92513541529e90f4f79a1f2c3f8ccf5a199e4c20.tar.zst yuzu-92513541529e90f4f79a1f2c3f8ccf5a199e4c20.zip |
Diffstat (limited to 'src/video_core/texture_cache/texture_cache.h')
-rw-r--r-- | src/video_core/texture_cache/texture_cache.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h index 685bd28f4..d2093e581 100644 --- a/src/video_core/texture_cache/texture_cache.h +++ b/src/video_core/texture_cache/texture_cache.h @@ -444,11 +444,9 @@ private: } modified |= surface->IsModified(); // Now we got all the data set up - const u32 dst_width{params.GetMipWidth(mipmap)}; - const u32 dst_height{params.GetMipHeight(mipmap)}; - const CopyParams copy_params(0, 0, 0, 0, 0, layer, 0, mipmap, - std::min(src_params.width, dst_width), - std::min(src_params.height, dst_height), 1); + const u32 width = SurfaceParams::IntersectWidth(src_params, params, 0, mipmap); + const u32 height = SurfaceParams::IntersectHeight(src_params, params, 0, mipmap); + const CopyParams copy_params(0, 0, 0, 0, 0, layer, 0, mipmap, width, height, 1); passed_tests++; ImageCopy(surface, new_surface, copy_params); } |