From 727ac634a94d4652a34c9a2898abf1590eb94a6f Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 10 Jan 2020 02:10:28 +0100 Subject: [PATCH] Redraw window contents during resize. --- profiler/src/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp index 6fcea999..bd3b6da8 100644 --- a/profiler/src/main.cpp +++ b/profiler/src/main.cpp @@ -77,6 +77,10 @@ static void SetWindowTitleCallback( const char* title ) } static void DrawContents(); +static void WindowRefreshCallback( GLFWwindow* window ) +{ + DrawContents(); +} std::vector::const_iterator> RebuildConnectionHistory( const std::unordered_map& connHistMap ) { @@ -235,6 +239,7 @@ int main( int argc, char** argv ) glfwMakeContextCurrent(window); glfwSwapInterval(1); // Enable vsync gl3wInit(); + glfwSetWindowRefreshCallback( window, WindowRefreshCallback ); #ifdef _WIN32 typedef UINT(*GDFS)(void);