First buffer swap takes 20 seconds

My first glfwSwapBuffers after glfw init takes 20 seconds.
Is this normal? Does anybody know what is causing this?
Any next buffer swap takes <1 ms.

source code:

I’m not sure what other info I should provide.