mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-29 16:54:35 +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 );
|
glfwMakeContextCurrent( s_window );
|
||||||
glfwSwapInterval( 1 ); // Enable vsync
|
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 );
|
ImGui_ImplGlfw_InitForOpenGL( s_window, true );
|
||||||
#ifdef __EMSCRIPTEN__
|
#ifdef __EMSCRIPTEN__
|
||||||
|
Loading…
Reference in New Issue
Block a user