Print more information when cannot retrieve OpenGL version.

At least the OpenGL error should be enough to pinpoint what went wrong.