Window API changes

This commit is contained in:
Jack Andersen 2018-08-27 19:41:15 -10:00
parent 8ee04c8f1a
commit 70b2518751
3 changed files with 3 additions and 9 deletions

View File

@ -1259,10 +1259,8 @@ public:
return std::unique_ptr<uint8_t[]>(); return std::unique_ptr<uint8_t[]>();
} }
void waitForRetrace(IAudioVoiceEngine* engine) void waitForRetrace()
{ {
if (engine)
engine->pumpAndMixVoices();
m_gfxCtx->m_output->WaitForVBlank(); m_gfxCtx->m_output->WaitForVBlank();
} }

View File

@ -205,10 +205,8 @@ struct WindowWayland : IWindow
return std::unique_ptr<uint8_t[]>(); return std::unique_ptr<uint8_t[]>();
} }
void waitForRetrace(IAudioVoiceEngine* engine) void waitForRetrace()
{ {
if (engine)
engine->pumpAndMixVoices();
} }
uintptr_t getPlatformHandle() const uintptr_t getPlatformHandle() const

View File

@ -1500,10 +1500,8 @@ public:
XSendEvent(m_xDisp, se->requestor, False, 0, &reply); XSendEvent(m_xDisp, se->requestor, False, 0, &reply);
} }
void waitForRetrace(IAudioVoiceEngine* engine) void waitForRetrace()
{ {
if (engine)
engine->pumpAndMixVoices();
std::unique_lock<std::mutex> lk(m_gfxCtx->m_vsyncmt); std::unique_lock<std::mutex> lk(m_gfxCtx->m_vsyncmt);
m_gfxCtx->m_vsynccv.wait(lk); m_gfxCtx->m_vsynccv.wait(lk);
} }