diff options
| author | Scott Mansell <phiren@gmail.com> | 2023-02-03 20:00:57 +1300 |
|---|---|---|
| committer | Scott Mansell <phiren@gmail.com> | 2023-02-09 18:36:20 +1300 |
| commit | 5c1b3ac61d7e660a9d1c206dbd0e615d637d3272 (patch) | |
| tree | d4ff989385d6eeff2b67395e9c43d3041270cddd /Source/Core/VideoCommon/Present.cpp | |
| parent | 9c1fe59cc9e9c3616416d78e1ed4b37be1bb2f66 (diff) | |
Hook up Presenter's ConfigChanged function
Fixes issue with post-processing not working
Diffstat (limited to 'Source/Core/VideoCommon/Present.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/Present.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/Present.cpp b/Source/Core/VideoCommon/Present.cpp index 068c4693fa..181dfea140 100644 --- a/Source/Core/VideoCommon/Present.cpp +++ b/Source/Core/VideoCommon/Present.cpp @@ -31,6 +31,8 @@ static float AspectToWidescreen(float aspect) Presenter::Presenter() { + m_config_changed = + ConfigChangedEvent::Register([this](u32 bits) { ConfigChanged(bits); }, "Presenter"); } Presenter::~Presenter() @@ -176,7 +178,7 @@ void Presenter::SetBackbuffer(SurfaceInfo info) UpdateDrawRectangle(); } -void Presenter::CheckForConfigChanges(u32 changed_bits) +void Presenter::ConfigChanged(u32 changed_bits) { // Check for post-processing shader changes. Done up here as it doesn't affect anything outside // the post-processor. Note that options are applied every frame, so no need to check those. |
