mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-20 10:59:58 +00:00
surface_base: Add parenthesis to EmplaceOverview's predicate
This commit is contained in:
parent
324e470879
commit
e0002599ac
1 changed files with 2 additions and 3 deletions
|
@ -253,9 +253,8 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
TView EmplaceOverview(const SurfaceParams& overview_params) {
|
TView EmplaceOverview(const SurfaceParams& overview_params) {
|
||||||
const u32 num_layers{params.is_layered && !overview_params.is_layered ? 1 : params.depth};
|
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(ViewParams(overview_params.target, 0, num_layers, 0, params.num_levels));
|
||||||
return GetView(view_params);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::optional<TView> EmplaceView(const SurfaceParams& view_params, const GPUVAddr view_addr) {
|
std::optional<TView> EmplaceView(const SurfaceParams& view_params, const GPUVAddr view_addr) {
|
||||||
|
|
Loading…
Reference in a new issue