Fix glfw backend.

This commit is contained in:
Bartosz Taudul
2025-05-26 01:29:23 +02:00
parent e9db22b175
commit b00d4e36a8

View File

@@ -138,7 +138,7 @@ void Backend::Run()
{
glfwPollEvents();
s_redraw();
if( s_config.focusLostLimit && !glfwGetWindowAttrib( s_window, GLFW_FOCUSED ) ) std::this_thread::sleep_for( std::chrono::milliseconds( 50 ) );
if( tracy::s_config.focusLostLimit && !glfwGetWindowAttrib( s_window, GLFW_FOCUSED ) ) std::this_thread::sleep_for( std::chrono::milliseconds( 50 ) );
s_mainThreadTasks->Run();
}
}