Settings: Disable texture replacements if TC disabled

Stops replacements being enumerated in the software renderer as well.
This commit is contained in:
Stenzek 2024-11-30 14:42:49 +10:00
parent f1435dcf67
commit 9dec34c8c0
No known key found for this signature in database
1 changed files with 5 additions and 0 deletions

View File

@ -996,6 +996,11 @@ void Settings::FixIncompatibleSettings(bool display_osd_messages)
g_settings.gpu_pgxp_disable_2d = false;
}
// texture replacements are not available without the TC or with the software renderer
g_settings.texture_replacements.enable_texture_replacements &=
(g_settings.gpu_renderer != GPURenderer::Software && g_settings.gpu_texture_cache);
g_settings.texture_replacements.enable_vram_write_replacements &= (g_settings.gpu_renderer != GPURenderer::Software);
#ifndef ENABLE_MMAP_FASTMEM
if (g_settings.cpu_fastmem_mode == CPUFastmemMode::MMap)
{