mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Only show window when it's ready.
This commit is contained in:
parent
a9dd70251b
commit
00fb98ed64
@ -93,6 +93,7 @@ int main( int argc, char** argv )
|
||||
// Setup window
|
||||
glfwSetErrorCallback(glfw_error_callback);
|
||||
if( !glfwInit() ) return 1;
|
||||
glfwWindowHint(GLFW_VISIBLE, 0);
|
||||
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
|
||||
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 2);
|
||||
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
|
||||
@ -163,6 +164,8 @@ int main( int argc, char** argv )
|
||||
|
||||
std::thread loadThread;
|
||||
|
||||
glfwShowWindow( window );
|
||||
|
||||
// Main loop
|
||||
while (!glfwWindowShouldClose(window))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user