mirror of https://github.com/AxioDL/boo.git
Window API changes
This commit is contained in:
parent
8ee04c8f1a
commit
70b2518751
|
@ -1259,10 +1259,8 @@ public:
|
|||
return std::unique_ptr<uint8_t[]>();
|
||||
}
|
||||
|
||||
void waitForRetrace(IAudioVoiceEngine* engine)
|
||||
void waitForRetrace()
|
||||
{
|
||||
if (engine)
|
||||
engine->pumpAndMixVoices();
|
||||
m_gfxCtx->m_output->WaitForVBlank();
|
||||
}
|
||||
|
||||
|
|
|
@ -205,10 +205,8 @@ struct WindowWayland : IWindow
|
|||
return std::unique_ptr<uint8_t[]>();
|
||||
}
|
||||
|
||||
void waitForRetrace(IAudioVoiceEngine* engine)
|
||||
void waitForRetrace()
|
||||
{
|
||||
if (engine)
|
||||
engine->pumpAndMixVoices();
|
||||
}
|
||||
|
||||
uintptr_t getPlatformHandle() const
|
||||
|
|
|
@ -1500,10 +1500,8 @@ public:
|
|||
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);
|
||||
m_gfxCtx->m_vsynccv.wait(lk);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue