Added opengl initialization.