mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-28 23:38:49 +00:00
VideoCommon: call texture load graphics mod hook when Dolphin loads a texture
This commit is contained in:
parent
8efd7833e5
commit
ea3e133200
7 changed files with 27 additions and 11 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue