From d010f075299be85c2fd586f1872b4add5f7471c1 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Tue, 2 Mar 2021 23:54:01 -0800 Subject: [PATCH] GPU: Ignore replacements for framebufs. Since these don't specify the texture hash/etc. info. More importantly, prevents a crash. --- GPU/Common/TextureCacheCommon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPU/Common/TextureCacheCommon.cpp b/GPU/Common/TextureCacheCommon.cpp index 47dcf6d755..b33e206058 100644 --- a/GPU/Common/TextureCacheCommon.cpp +++ b/GPU/Common/TextureCacheCommon.cpp @@ -222,7 +222,7 @@ SamplerCacheKey TextureCacheCommon::GetSamplingParams(int maxLevel, const TexCac // Filtering overrides from replacements or settings. TextureFiltering forceFiltering = TEX_FILTER_AUTO; u64 cachekey = replacer_.Enabled() ? entry->CacheKey() : 0; - if (!replacer_.Enabled() || !replacer_.FindFiltering(cachekey, entry->fullhash, &forceFiltering)) { + if (!replacer_.Enabled() || entry == nullptr || !replacer_.FindFiltering(cachekey, entry->fullhash, &forceFiltering)) { switch (g_Config.iTexFiltering) { case TEX_FILTER_AUTO: // Follow what the game wants. We just do a single heuristic change to avoid bleeding of wacky color test colors