diff --git a/profiler/src/Backend.hpp b/profiler/src/Backend.hpp index f4a031bb..a2e94a8c 100644 --- a/profiler/src/Backend.hpp +++ b/profiler/src/Backend.hpp @@ -11,7 +11,7 @@ class RunQueue; class Backend { public: - Backend( const char* title, const std::function& redraw, const std::function& scaleChanged, RunQueue* mainThreadTasks ); + Backend( const char* title, const std::function& redraw, const std::function& scaleChanged, const std::function& isBusy, RunQueue* mainThreadTasks ); ~Backend(); void Show(); diff --git a/profiler/src/BackendGlfw.cpp b/profiler/src/BackendGlfw.cpp index bfe12e1d..be05d844 100644 --- a/profiler/src/BackendGlfw.cpp +++ b/profiler/src/BackendGlfw.cpp @@ -60,7 +60,7 @@ static void glfw_window_iconify_callback( GLFWwindow*, int iconified ) } -Backend::Backend( const char* title, const std::function& redraw, const std::function& scaleChanged, RunQueue* mainThreadTasks ) +Backend::Backend( const char* title, const std::function& redraw, const std::function& scaleChanged, const std::function& isBusy, RunQueue* mainThreadTasks ) { glfwSetErrorCallback( glfw_error_callback ); if( !glfwInit() ) exit( 1 ); diff --git a/profiler/src/BackendWayland.cpp b/profiler/src/BackendWayland.cpp index a9647adc..2f1c971e 100644 --- a/profiler/src/BackendWayland.cpp +++ b/profiler/src/BackendWayland.cpp @@ -728,7 +728,7 @@ static void SetupCursor() s_cursorY = cursor->images[0]->hotspot_y * 120 / s_maxScale; } -Backend::Backend( const char* title, const std::function& redraw, const std::function& scaleChanged, RunQueue* mainThreadTasks ) +Backend::Backend( const char* title, const std::function& redraw, const std::function& scaleChanged, const std::function& isBusy, RunQueue* mainThreadTasks ) { s_redraw = redraw; s_scaleChanged = scaleChanged; diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp index a79f4d6a..929e04f7 100644 --- a/profiler/src/main.cpp +++ b/profiler/src/main.cpp @@ -341,7 +341,7 @@ int main( int argc, char** argv ) LoadConfig(); ImGuiTracyContext imguiContext; - Backend backend( title, DrawContents, ScaleChanged, &mainThreadTasks ); + Backend backend( title, DrawContents, ScaleChanged, IsBusy, &mainThreadTasks ); tracy::InitTexture(); iconTex = tracy::MakeTexture(); zigzagTex = tracy::MakeTexture( true );