aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2021-10-15 22:59:16 +0200
committerFernando Sahmkow <fsahmkow27@gmail.com>2021-11-16 22:11:31 +0100
commit7bb52ad3a74fd2fd64baf5c17c95e88cd3007658 (patch)
tree2a479e907e8019b81aaeb99c5a1966ec05b5aab0 /src/common
parent4cbb1d079913f4a88ba6f11142470119db311d8c (diff)
Texture Cahe: Fix downscaling on SMO.
Diffstat (limited to 'src/common')
-rw-r--r--src/common/settings.cpp2
-rw-r--r--src/common/settings.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/common/settings.cpp b/src/common/settings.cpp
index 12fdb0f9b6..bc2c8c7d7e 100644
--- a/src/common/settings.cpp
+++ b/src/common/settings.cpp
@@ -109,10 +109,12 @@ float Volume() {
void UpdateRescalingInfo() {
const auto setup = values.resolution_setup.GetValue();
auto& info = values.resolution_info;
+ info.downscale = false;
switch (setup) {
case ResolutionSetup::Res1_2X:
info.up_scale = 1;
info.down_shift = 1;
+ info.downscale = true;
break;
case ResolutionSetup::Res1X:
info.up_scale = 1;
diff --git a/src/common/settings.h b/src/common/settings.h
index 09f7cdd842..a09db08225 100644
--- a/src/common/settings.h
+++ b/src/common/settings.h
@@ -72,6 +72,7 @@ struct ResolutionScalingInfo {
f32 up_factor{1.0f};
f32 down_factor{1.0f};
bool active{};
+ bool downscale{};
s32 ScaleUp(s32 value) const {
if (value == 0) {