summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/TextureCacheBase.h
diff options
context:
space:
mode:
authorMai <mai.iam2048@gmail.com>2023-12-11 07:42:48 -0500
committerGitHub <noreply@github.com>2023-12-11 07:42:48 -0500
commitd84ed054ee7fcaa9f9d1abbd5db0f10aed659092 (patch)
treed71c0715785e6a48bf2df39fba88569e0d82ca25 /Source/Core/VideoCommon/TextureCacheBase.h
parent6e0bc2a4db873d0f4c6f445deb52fc0d3ec843c5 (diff)
parent02756be3819db0a88607801e04646fe181957e51 (diff)
Merge pull request #12374 from iwubcode/custom_texture_potential_crash_fix
VideoCommon: prevent a potential custom texture crash
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);