From 2dc24a9148e1dc98ada6629fe6eebb673ceb336b Mon Sep 17 00:00:00 2001 From: iwubcode Date: Tue, 20 Jun 2023 18:59:55 -0500 Subject: VideoCommon: move cached texture asset to 'CustomAsset' common code --- Source/Core/VideoCommon/TextureCacheBase.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp') diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp index fc5c26b5a8..c26cbb5f4c 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.cpp +++ b/Source/Core/VideoCommon/TextureCacheBase.cpp @@ -267,7 +267,7 @@ bool TextureCacheBase::DidLinkedAssetsChange(const TCacheEntry& entry) return false; const auto last_asset_write_time = entry.linked_asset.m_asset->GetLastLoadedTime(); - return last_asset_write_time > entry.linked_asset.m_last_write_time; + return last_asset_write_time > entry.linked_asset.m_cached_write_time; } RcTcacheEntry TextureCacheBase::ApplyPaletteToEntry(RcTcacheEntry& entry, const u8* palette, @@ -1590,7 +1590,7 @@ RcTcacheEntry TextureCacheBase::GetTexture(const int textureCacheSafetyColorSamp InvalidateTexture(oldest_entry); } - CachedTextureAsset cached_texture_asset; + VideoCommon::CachedAsset cached_texture_asset; std::shared_ptr data = nullptr; bool has_arbitrary_mipmaps = false; std::shared_ptr hires_texture; -- cgit v1.2.3