From 02756be3819db0a88607801e04646fe181957e51 Mon Sep 17 00:00:00 2001 From: iwubcode Date: Sat, 9 Dec 2023 23:43:40 -0600 Subject: VideoCommon: prevent a potential custom texture crash that can occur when a shared_ptr gets released while a pointer to its member data is still being used --- Source/Core/VideoCommon/TextureCacheBase.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'Source/Core/VideoCommon/TextureCacheBase.h') diff --git a/Source/Core/VideoCommon/TextureCacheBase.h b/Source/Core/VideoCommon/TextureCacheBase.h index 42112d1302..fd2ec0ad44 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.h +++ b/Source/Core/VideoCommon/TextureCacheBase.h @@ -346,10 +346,11 @@ private: void SetBackupConfig(const VideoConfig& config); - RcTcacheEntry CreateTextureEntry(const TextureCreationInfo& creation_info, - const TextureInfo& texture_info, int safety_color_sample_size, - std::vector assets_data, - bool custom_arbitrary_mipmaps, bool skip_texture_dump); + RcTcacheEntry + CreateTextureEntry(const TextureCreationInfo& creation_info, const TextureInfo& texture_info, + int safety_color_sample_size, + std::vector> assets_data, + bool custom_arbitrary_mipmaps, bool skip_texture_dump); RcTcacheEntry GetXFBFromCache(u32 address, u32 width, u32 height, u32 stride); -- cgit v1.2.3