summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-07-31 08:04:44 +0200
committerFernando Sahmkow <fsahmkow27@gmail.com>2021-11-16 22:11:29 +0100
commit526e47f1486c361e10fc930eff1df4f13d178816 (patch)
treedd81f9646533d9cd2fd490bb0a53ccc20441da1a /src/video_core
parentgl_texture_cache: Fix scaling blits (diff)
downloadyuzu-526e47f1486c361e10fc930eff1df4f13d178816.tar
yuzu-526e47f1486c361e10fc930eff1df4f13d178816.tar.gz
yuzu-526e47f1486c361e10fc930eff1df4f13d178816.tar.bz2
yuzu-526e47f1486c361e10fc930eff1df4f13d178816.tar.lz
yuzu-526e47f1486c361e10fc930eff1df4f13d178816.tar.xz
yuzu-526e47f1486c361e10fc930eff1df4f13d178816.tar.zst
yuzu-526e47f1486c361e10fc930eff1df4f13d178816.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_vulkan/vk_rasterizer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/renderer_vulkan/vk_rasterizer.cpp b/src/video_core/renderer_vulkan/vk_rasterizer.cpp
index 7a7374b78..20bb05e7d 100644
--- a/src/video_core/renderer_vulkan/vk_rasterizer.cpp
+++ b/src/video_core/renderer_vulkan/vk_rasterizer.cpp
@@ -604,8 +604,8 @@ void RasterizerVulkan::UpdateViewportsState(Tegra::Engines::Maxwell3D::Regs& reg
if (!state_tracker.TouchViewports()) {
return;
}
- const float scale =
- texture_cache.IsRescaling() ? Settings::values.resolution_info.up_factor : 1.0f;
+ const bool is_rescaling{texture_cache.IsRescaling()};
+ const float scale = is_rescaling ? Settings::values.resolution_info.up_factor : 1.0f;
const std::array viewports{
GetViewportState(device, regs, 0, scale), GetViewportState(device, regs, 1, scale),
GetViewportState(device, regs, 2, scale), GetViewportState(device, regs, 3, scale),