1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Make sure window redraw is active on refresh callback.

This commit is contained in:
Bartosz Taudul
2022-10-13 19:08:37 +02:00
parent b88ef29792
commit de3190657e
+1 -1
View File
@@ -85,7 +85,7 @@ Backend::Backend( const char* title, std::function<void()> redraw, RunQueue* mai
glfwMakeContextCurrent( s_window );
glfwSwapInterval( 1 ); // Enable vsync
glfwSetWindowRefreshCallback( s_window, []( GLFWwindow* ) { s_redraw(); } );
glfwSetWindowRefreshCallback( s_window, []( GLFWwindow* ) { tracy::s_wasActive = true; s_redraw(); } );
ImGui_ImplGlfw_InitForOpenGL( s_window, true );
#ifdef __EMSCRIPTEN__