mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2025-08-08 09:32:32 -07:00
Merge pull request #4976 from comex/poll-events
Overhaul EmuWindow::PollEvents to fix yuzu-cmd calling SDL_PollEvents off main thread
This commit is contained in:
@@ -314,7 +314,7 @@ GRenderWindow::~GRenderWindow() {
|
||||
input_subsystem->Shutdown();
|
||||
}
|
||||
|
||||
void GRenderWindow::PollEvents() {
|
||||
void GRenderWindow::OnFrameDisplayed() {
|
||||
if (!first_frame) {
|
||||
first_frame = true;
|
||||
emit FirstFrameDisplayed();
|
||||
|
@@ -131,7 +131,7 @@ public:
|
||||
~GRenderWindow() override;
|
||||
|
||||
// EmuWindow implementation.
|
||||
void PollEvents() override;
|
||||
void OnFrameDisplayed() override;
|
||||
bool IsShown() const override;
|
||||
std::unique_ptr<Core::Frontend::GraphicsContext> CreateSharedContext() const override;
|
||||
|
||||
|
Reference in New Issue
Block a user