summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/TextureCacheBase.h
diff options
context:
space:
mode:
authoriwubcode <iwubcode@users.noreply.github.com>2023-12-09 23:43:40 -0600
committeriwubcode <iwubcode@users.noreply.github.com>2023-12-09 23:43:40 -0600
commit02756be3819db0a88607801e04646fe181957e51 (patch)
tree675b4441ba1f901a5a3b29843da205ff61dfac5f /Source/Core/VideoCommon/TextureCacheBase.h
parentccedeb4936b9d3a378d5babb074a00a32af35c54 (diff)
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
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.h')
-rw-r--r--Source/Core/VideoCommon/TextureCacheBase.h9
1 files changed, 5 insertions, 4 deletions
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<VideoCommon::CustomTextureData*> 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<std::shared_ptr<VideoCommon::TextureData>> assets_data,
+ bool custom_arbitrary_mipmaps, bool skip_texture_dump);
RcTcacheEntry GetXFBFromCache(u32 address, u32 width, u32 height, u32 stride);