mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Redraw window contents during resize.
This commit is contained in:
parent
5f48b08215
commit
727ac634a9
@ -77,6 +77,10 @@ static void SetWindowTitleCallback( const char* title )
|
||||
}
|
||||
|
||||
static void DrawContents();
|
||||
static void WindowRefreshCallback( GLFWwindow* window )
|
||||
{
|
||||
DrawContents();
|
||||
}
|
||||
|
||||
std::vector<std::unordered_map<std::string, uint64_t>::const_iterator> RebuildConnectionHistory( const std::unordered_map<std::string, uint64_t>& 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);
|
||||
|
Loading…
Reference in New Issue
Block a user