removed getCurrentContext and getCurrentDisplay (directly using glXGetCurrentContext or wglGetCurrentContext)