diff options
author | Rodrigo Locatti <reinuseslisp@airmail.cc> | 2020-11-25 20:44:53 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-25 20:44:53 -0300 |
commit | 0e15c68f54ae5217e6247603b9e31757515f89e1 (patch) | |
tree | 5547698f9917260b0172298b9c2219a399063987 /src/core/frontend | |
parent | b834c21894ca905cacce2bda04cf24e81175f434 (diff) | |
parent | 994f4977810749c0b597e7a7531a02d907967a68 (diff) |
Merge pull request #4976 from comex/poll-events
Overhaul EmuWindow::PollEvents to fix yuzu-cmd calling SDL_PollEvents off main thread
Diffstat (limited to 'src/core/frontend')
-rw-r--r-- | src/core/frontend/emu_window.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/frontend/emu_window.h b/src/core/frontend/emu_window.h index 3e8780243..276d2b906 100644 --- a/src/core/frontend/emu_window.h +++ b/src/core/frontend/emu_window.h @@ -102,8 +102,8 @@ public: float render_surface_scale = 1.0f; }; - /// Polls window events - virtual void PollEvents() = 0; + /// Called from GPU thread when a frame is displayed. + virtual void OnFrameDisplayed() {} /** * Returns a GraphicsContext that the frontend provides to be used for rendering. |