summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/TextureCacheBase.cpp
diff options
context:
space:
mode:
authoriwubcode <iwubcode@users.noreply.github.com>2022-10-28 19:24:43 -0500
committeriwubcode <iwubcode@users.noreply.github.com>2022-10-28 19:24:43 -0500
commitea3e133200cda61f2e87a6e942f89e76b2c6f4fc (patch)
tree0bee608e114094d8b336b12ad983a4418721092c /Source/Core/VideoCommon/TextureCacheBase.cpp
parent8efd7833e58092cb3074d477beef5803b62bc044 (diff)
VideoCommon: call texture load graphics mod hook when Dolphin loads a texture
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
-rw-r--r--Source/Core/VideoCommon/TextureCacheBase.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp
index a90efd15be..29f972a67b 100644
--- a/Source/Core/VideoCommon/TextureCacheBase.cpp
+++ b/Source/Core/VideoCommon/TextureCacheBase.cpp
@@ -1243,6 +1243,13 @@ TextureCacheBase::TCacheEntry* TextureCacheBase::Load(const TextureInfo& texture
if (entry->texture_info_name.empty() && g_ActiveConfig.bGraphicMods)
{
entry->texture_info_name = texture_info.CalculateTextureName().GetFullName();
+
+ GraphicsModActionData::TextureLoad texture_load{entry->texture_info_name};
+ for (const auto action :
+ g_renderer->GetGraphicsModManager().GetTextureLoadActions(entry->texture_info_name))
+ {
+ action->OnTextureLoad(&texture_load);
+ }
}
bound_textures[texture_info.GetStage()] = entry;