moved initializeOpenGLFunctions