summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/AbstractGfx.cpp
diff options
context:
space:
mode:
authorJordan Woyak <jordan.woyak@gmail.com>2025-11-04 13:57:08 -0600
committerGitHub <noreply@github.com>2025-11-04 13:57:08 -0600
commit7d617878e0a4d61bd1362cb5069b86e82be4723f (patch)
treec4fac7cdff7aeacf983ba65ba0ea8bc1ed9a8f4b /Source/Core/VideoCommon/AbstractGfx.cpp
parent947ed4aaf69714d6df0209bf1c55bd419ab8a3a3 (diff)
parentf289b06e0db8bba6a3491d6e3cf0c2dd1b7a29fa (diff)
Merge pull request #13626 from jordan-woyak/non-global-hookable-event
Common: Make HookableEvent use non-static data.
Diffstat (limited to 'Source/Core/VideoCommon/AbstractGfx.cpp')
-rw-r--r--Source/Core/VideoCommon/AbstractGfx.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/AbstractGfx.cpp b/Source/Core/VideoCommon/AbstractGfx.cpp
index 90b85ddfff..ca6ad881b1 100644
--- a/Source/Core/VideoCommon/AbstractGfx.cpp
+++ b/Source/Core/VideoCommon/AbstractGfx.cpp
@@ -18,8 +18,8 @@ std::unique_ptr<AbstractGfx> g_gfx;
AbstractGfx::AbstractGfx()
{
- m_config_changed =
- ConfigChangedEvent::Register([this](u32 bits) { OnConfigChanged(bits); }, "AbstractGfx");
+ m_config_changed = GetVideoEvents().config_changed_event.Register(
+ [this](u32 bits) { OnConfigChanged(bits); }, "AbstractGfx");
}
bool AbstractGfx::IsHeadless() const