src/GLX/libglxcurrent.h
static inline __GLXThreadState *__glXGetCurrentThreadState(void)
{
    __GLdispatchThreadState *glas = __glDispatchGetCurrentThreadState();
    if (unlikely(!glas ||
                 (glas->tag != GLDISPATCH_API_GLX))) {
        return NULL;
    } else {
        return (__GLXThreadState *)(glas);
    }
}
/*!
 * Looks up the current thread state.
 *
 * If there isn't a current context, or if the current context was set by
 * another library like EGL, then this will return \c NULL.
 */
Looks up the current thread state.
If there isn't a current context, or if the current context was set by
another library like EGL, then this will return \c NULL.
Looks up the current thread state . If there isn ' t a current context or if the current context was set by another library like EGL then this will return \ c NULL .
static inline __GLXThreadState *__glXGetCurrentThreadState(void)
{
    __GLdispatchThreadState *glas = __glDispatchGetCurrentThreadState();
    if (unlikely(!glas ||
                 (glas->tag != GLDISPATCH_API_GLX))) {
        return NULL;
    } else {
        return (__GLXThreadState *)(glas);
    }
}
static inline __GLXThreadState * __glXGetCurrentThreadState ( void ) { __GLdispatchThreadState * glas = __glDispatchGetCurrentThreadState ( ) ; if ( unlikely ( ! glas || ( glas -> tag != GLDISPATCH_API_GLX ) ) ) { return NULL ; } else { return ( __GLXThreadState * ) ( glas ) ; } }
Looks up the current thread state.
Looks up the current thread state .