From 00fb98ed64d7a09555e86b3f4794634f439db076 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 31 Aug 2018 19:40:08 +0200 Subject: [PATCH] Only show window when it's ready. --- profiler/src/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp index 1369a2c0..4785771f 100644 --- a/profiler/src/main.cpp +++ b/profiler/src/main.cpp @@ -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)) {