diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-05-08 08:51:54 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-06-21 02:36:12 +0200 |
commit | e0002599accc783be1bda5853df377c84ee6219a (patch) | |
tree | d57876c0e5cdbf452f6dd875d6c979b11d4c041c /src | |
parent | Texture Cache: Implement Blitting and Fermi Copies (diff) | |
download | yuzu-e0002599accc783be1bda5853df377c84ee6219a.tar yuzu-e0002599accc783be1bda5853df377c84ee6219a.tar.gz yuzu-e0002599accc783be1bda5853df377c84ee6219a.tar.bz2 yuzu-e0002599accc783be1bda5853df377c84ee6219a.tar.lz yuzu-e0002599accc783be1bda5853df377c84ee6219a.tar.xz yuzu-e0002599accc783be1bda5853df377c84ee6219a.tar.zst yuzu-e0002599accc783be1bda5853df377c84ee6219a.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/texture_cache/surface_base.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/video_core/texture_cache/surface_base.h b/src/video_core/texture_cache/surface_base.h index f469ab498..c11998249 100644 --- a/src/video_core/texture_cache/surface_base.h +++ b/src/video_core/texture_cache/surface_base.h @@ -253,9 +253,8 @@ public: } TView EmplaceOverview(const SurfaceParams& overview_params) { - const u32 num_layers{params.is_layered && !overview_params.is_layered ? 1 : params.depth}; - const ViewParams view_params(overview_params.target, 0, num_layers, 0, params.num_levels); - return GetView(view_params); + const u32 num_layers{(params.is_layered && !overview_params.is_layered) ? 1 : params.depth}; + return GetView(ViewParams(overview_params.target, 0, num_layers, 0, params.num_levels)); } std::optional<TView> EmplaceView(const SurfaceParams& view_params, const GPUVAddr view_addr) { |