From b7db2510efb44fa9eac5cd353e294b30b9dbdfff Mon Sep 17 00:00:00 2001 From: Scott Mansell Date: Mon, 6 Mar 2023 00:05:12 +1300 Subject: Don't discard ConfigChanged callback handle --- Source/Core/VideoCommon/AbstractGfx.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Source/Core/VideoCommon/AbstractGfx.cpp') 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 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 -- cgit v1.2.3