diff options
| author | Scott Mansell <phiren@gmail.com> | 2023-03-06 00:05:12 +1300 |
|---|---|---|
| committer | Scott Mansell <phiren@gmail.com> | 2023-03-06 00:12:26 +1300 |
| commit | b7db2510efb44fa9eac5cd353e294b30b9dbdfff (patch) | |
| tree | ee249ded77b6a14772f1f0616dd1c2d3af1be220 /Source/Core/VideoCommon/AbstractGfx.cpp | |
| parent | 95ce41ac56f2774a1b18a1a1dafd2dadee248616 (diff) | |
Don't discard ConfigChanged callback handle
Diffstat (limited to 'Source/Core/VideoCommon/AbstractGfx.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/AbstractGfx.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/AbstractGfx.cpp b/Source/Core/VideoCommon/AbstractGfx.cpp index 6e1c56aa20..7c0cc10355 100644 --- a/Source/Core/VideoCommon/AbstractGfx.cpp +++ b/Source/Core/VideoCommon/AbstractGfx.cpp @@ -18,7 +18,8 @@ std::unique_ptr<AbstractGfx> g_gfx; AbstractGfx::AbstractGfx() { - ConfigChangedEvent::Register([this](u32 bits) { OnConfigChanged(bits); }, "AbstractGfx"); + m_config_changed = + ConfigChangedEvent::Register([this](u32 bits) { OnConfigChanged(bits); }, "AbstractGfx"); } bool AbstractGfx::IsHeadless() const |
