mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Make sure window redraw is active on refresh callback.
This commit is contained in:
parent
b88ef29792
commit
de3190657e
@ -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__
|
||||
|
Loading…
Reference in New Issue
Block a user