gladLoadGLLoader() fails randomly
I have a situation where gladLoadGLLoader() fails - but not reproducible. It works perfectly when using Windows. It fails in about 10% of the tries with Ubuntu running in a VM. And it fails in about 90% of the tries with Ubuntu running on a real hardware.

The reason for the failure is the call to "if(glGetString(GL_VERSION) == NULL)" - but the OpenGL context exists at this point, elsewhere it would fail in 100% of all cases/platforms.

Any idea what could cause this?