Added OpenGL context creation to XWindow