Gets display for current context
C bindings library: libGL.a
Display *glXGetCurrentDisplay(void)
The glXGetCurrentDisplay subroutine returns the display for the current context. If no context is current, NULL is returned.
The glXGetCurrentDisplay subroutine returns client-side information. It does not make a round trip to the server, and therefore does not flush any pending events.