From 4b71428846e24a98059d897f8dadd032bb09b588 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Mon, 18 Nov 2024 23:34:24 +1000 Subject: [PATCH] GPU/TextureCache: Fix tracking getting enabled without TC --- src/core/gpu_hw_texture_cache.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/gpu_hw_texture_cache.cpp b/src/core/gpu_hw_texture_cache.cpp index a7dd2f2cd..1efc0988d 100644 --- a/src/core/gpu_hw_texture_cache.cpp +++ b/src/core/gpu_hw_texture_cache.cpp @@ -544,6 +544,9 @@ ALIGN_TO_CACHE_LINE GPUTextureCacheState s_state; bool GPUTextureCache::ShouldTrackVRAMWrites() { + if (!g_settings.gpu_texture_cache) + return false; + #ifdef ALWAYS_TRACK_VRAM_WRITES return true; #else