1
0
Fork 0
forked from suyu/suyu

vk_rasterizer: Minor style change

This commit is contained in:
ReinUsesLisp 2021-07-31 03:04:44 -03:00 committed by Fernando Sahmkow
parent c9238555f7
commit 526e47f148

View file

@ -604,8 +604,8 @@ void RasterizerVulkan::UpdateViewportsState(Tegra::Engines::Maxwell3D::Regs& reg
if (!state_tracker.TouchViewports()) { if (!state_tracker.TouchViewports()) {
return; return;
} }
const float scale = const bool is_rescaling{texture_cache.IsRescaling()};
texture_cache.IsRescaling() ? Settings::values.resolution_info.up_factor : 1.0f; const float scale = is_rescaling ? Settings::values.resolution_info.up_factor : 1.0f;
const std::array viewports{ const std::array viewports{
GetViewportState(device, regs, 0, scale), GetViewportState(device, regs, 1, scale), GetViewportState(device, regs, 0, scale), GetViewportState(device, regs, 1, scale),
GetViewportState(device, regs, 2, scale), GetViewportState(device, regs, 3, scale), GetViewportState(device, regs, 2, scale), GetViewportState(device, regs, 3, scale),