Since we now always init opengl and fail to create a window if that fails, may as well combine these two callbacks.