The title says it all.
In my Window.onUpdate
function:
void Destiny::WindowsWindow::onUpdate()
{
MSG msg;
if (PeekMessageW(&msg, m_Handle, 0, 0, PM_REMOVE)) {
TranslateMessage(&msg);
DT_CORE_TRACE("Before DispatchMessageW()");
DispatchMessageW(&msg);
DT_CORE_TRACE("After DispatchMessageW()");
}
}
and this following function gets called when the application starts:
void Application::run() {
while (m_Running)
{
for (Layer* layer : m_LayerStack) {
layer->onUpdate();
}
m_Window->onUpdate();
}
}
And I was able to track down that the DispatchMessageW
function does not return when I'm moving the window around.
Any Ideas on how to solve this?