mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-26 22:38:34 +00:00
VideoCommon: move cached texture asset to 'CustomAsset' common code
This commit is contained in:
parent
5ad2d86cc7
commit
2dc24a9148
3 changed files with 18 additions and 9 deletions
|
@ -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<VideoCommon::GameTextureAsset> cached_texture_asset;
|
||||
std::shared_ptr<VideoCommon::CustomTextureData> data = nullptr;
|
||||
bool has_arbitrary_mipmaps = false;
|
||||
std::shared_ptr<HiresTexture> hires_texture;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue