From c6bcbc02de79123bfb96b2a65e7043a64bb7b8ee Mon Sep 17 00:00:00 2001 From: Steveice10 <1269164+Steveice10@users.noreply.github.com> Date: Tue, 2 Jan 2024 12:05:22 -0800 Subject: [PATCH] frontend: Fix missing persistence for texture sampling setting. (#7305) --- src/android/app/src/main/jni/config.cpp | 1 + src/citra/config.cpp | 1 + src/citra_qt/configuration/config.cpp | 2 ++ 3 files changed, 4 insertions(+) diff --git a/src/android/app/src/main/jni/config.cpp b/src/android/app/src/main/jni/config.cpp index 574b824a2..f47792fd6 100644 --- a/src/android/app/src/main/jni/config.cpp +++ b/src/android/app/src/main/jni/config.cpp @@ -146,6 +146,7 @@ void Config::ReadValues() { ReadSetting("Renderer", Settings::values.use_disk_shader_cache); ReadSetting("Renderer", Settings::values.use_vsync_new); ReadSetting("Renderer", Settings::values.texture_filter); + ReadSetting("Renderer", Settings::values.texture_sampling); // Work around to map Android setting for enabling the frame limiter to the format Citra expects if (sdl2_config->GetBoolean("Renderer", "use_frame_limit", true)) { diff --git a/src/citra/config.cpp b/src/citra/config.cpp index 1cbcf0262..5f1f9c9c8 100644 --- a/src/citra/config.cpp +++ b/src/citra/config.cpp @@ -146,6 +146,7 @@ void Config::ReadValues() { ReadSetting("Renderer", Settings::values.frame_limit); ReadSetting("Renderer", Settings::values.use_vsync_new); ReadSetting("Renderer", Settings::values.texture_filter); + ReadSetting("Renderer", Settings::values.texture_sampling); ReadSetting("Renderer", Settings::values.mono_render_option); ReadSetting("Renderer", Settings::values.render_3d); diff --git a/src/citra_qt/configuration/config.cpp b/src/citra_qt/configuration/config.cpp index 2a8360221..4611b87f5 100644 --- a/src/citra_qt/configuration/config.cpp +++ b/src/citra_qt/configuration/config.cpp @@ -645,6 +645,7 @@ void Config::ReadRendererValues() { ReadGlobalSetting(Settings::values.bg_blue); ReadGlobalSetting(Settings::values.texture_filter); + ReadGlobalSetting(Settings::values.texture_sampling); if (global) { ReadBasicSetting(Settings::values.use_shader_jit); @@ -1130,6 +1131,7 @@ void Config::SaveRendererValues() { WriteGlobalSetting(Settings::values.bg_blue); WriteGlobalSetting(Settings::values.texture_filter); + WriteGlobalSetting(Settings::values.texture_sampling); if (global) { WriteSetting(QStringLiteral("use_shader_jit"), Settings::values.use_shader_jit.GetValue(),