Make sure OpenGL is inited before surfaceCreatedFunc is called