From 93c28ee3076b033bf10132a60d85e64623e33040 Mon Sep 17 00:00:00 2001 From: iwubcode Date: Sat, 3 Oct 2026 22:27:39 -0500 Subject: VideoCommon: return a RcTcacheEntry (shared_ptr) from TextureCacheBase::Load() This allows the texture entry to be stored off or passed around and shared in the future --- Source/Core/VideoCommon/TextureCacheBase.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Core/VideoCommon/TextureCacheBase.h') diff --git a/Source/Core/VideoCommon/TextureCacheBase.h b/Source/Core/VideoCommon/TextureCacheBase.h index 7e9d0613d4..4b9685dbcd 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.h +++ b/Source/Core/VideoCommon/TextureCacheBase.h @@ -278,7 +278,7 @@ public: void Invalidate(); void ReleaseToPool(TCacheEntry* entry); - TCacheEntry* Load(u32 stage); + RcTcacheEntry Load(u32 stage); RcTcacheEntry GetTexture(const int textureCacheSafetyColorSampleSize, const TextureInfo& texture_info); RcTcacheEntry GetXFBTexture(u32 address, u32 width, u32 height, u32 stride, @@ -352,7 +352,7 @@ private: static bool DidLinkedAssetsChange(const TCacheEntry& entry); - TCacheEntry* LoadImpl(u32 stage, bool force_reload); + RcTcacheEntry LoadImpl(u32 stage, bool force_reload); bool CreateUtilityTextures(); -- cgit v1.2.3