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
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -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__