Work around crash in texture replacement. See #14252

This commit is contained in:
Henrik Rydgård committed 2021-03-08 00:55:17 +01:00
1 parent f8ad621df5
commit 409a2b5e28
1 file changed
+1 -1
+1 -1
View File
@@ -221,7 +221,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;
u64 cachekey = replacer_.Enabled() ? (entry ? entry->CacheKey() : 0) : 0;
if (!replacer_.Enabled() || entry == nullptr || !replacer_.FindFiltering(cachekey, entry->fullhash, &forceFiltering)) {
switch (g_Config.iTexFiltering) {
case TEX_FILTER_AUTO: